From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1544/CH1/EX1.13/Ch01Ex13.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1544/CH1/EX1.13/Ch01Ex13.sce (limited to '1544/CH1/EX1.13') diff --git a/1544/CH1/EX1.13/Ch01Ex13.sce b/1544/CH1/EX1.13/Ch01Ex13.sce new file mode 100755 index 000000000..04fe822e5 --- /dev/null +++ b/1544/CH1/EX1.13/Ch01Ex13.sce @@ -0,0 +1,17 @@ +// Scilab code Ex1.13:Pg 19 (2008) +clc; clear; +I = 1.4; // Electric current, A +t = 900; // Time for which current flows, s +W = 200000; // Energy dissipated, J +// Using relation W = V*I*t, solving for V +V = W/( I*t ); // Potential difference, V +// Using relation P = V*I +P = V*I; // Electric power, W +// From Ohm's law, V = I*R, solving for R +R = V/I; // Resistance, ohm +printf("\nThe potential difference developed = %5.1f V\nThe power dissipated = %5.1f W\nThe resistance of the circuit = %5.1f ohm", V, P, R) + +// Result +// The potential difference developed = 158.7 V +// The power dissipated = 222.2 W +// The resistance of the circuit = 113.4 ohm -- cgit