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/CH2/EX2.15/Ch02Ex15.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1544/CH2/EX2.15/Ch02Ex15.sce (limited to '1544/CH2/EX2.15') 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 -- cgit