summaryrefslogtreecommitdiff
path: root/1544/CH1/EX1.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1544/CH1/EX1.13
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1544/CH1/EX1.13')
-rwxr-xr-x1544/CH1/EX1.13/Ch01Ex13.sce17
1 files changed, 17 insertions, 0 deletions
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