summaryrefslogtreecommitdiff
path: root/1544/CH2/EX2.15
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1544/CH2/EX2.15
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/CH2/EX2.15')
-rwxr-xr-x1544/CH2/EX2.15/Ch02Ex15.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1544/CH2/EX2.15/Ch02Ex15.sce b/1544/CH2/EX2.15/Ch02Ex15.sce
new file mode 100755
index 000000000..ffef3b98a
--- /dev/null
+++ b/1544/CH2/EX2.15/Ch02Ex15.sce
@@ -0,0 +1,14 @@
+// Scilab code Ex2.15: Pg 67 (2008)
+clc; clear;
+l1 = 600e-03; // Scale reading, metre
+l2 = 745e-03; // Scale reading, metre
+l_s = 509.3e-03; // Total scale length, metre
+E_s = 1.0186; // Source voltage, V
+E1 = ( l1/l_s )*E_s; // Voltage drop across length l1, V
+E2 = ( l2/l_s)*E_s; // Voltage drop across length l2, V
+printf("\nThe emf of the first cell = %3.1f V ", E1)
+printf("\nThe emf of the second cell = %3.2f V ", E2)
+
+// Result
+// The emf of the first cell = 1.2 V
+// The emf of the first cell = 1.49 V