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 --- 1523/CH1/EX1.8/1_8.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1523/CH1/EX1.8/1_8.sce (limited to '1523/CH1/EX1.8/1_8.sce') diff --git a/1523/CH1/EX1.8/1_8.sce b/1523/CH1/EX1.8/1_8.sce new file mode 100755 index 000000000..12ccbaef1 --- /dev/null +++ b/1523/CH1/EX1.8/1_8.sce @@ -0,0 +1,12 @@ +//Basic Circuit Concepts +//page no-1.14 +//example1.8 +I1=10/8; +printf("I1=2/5= %2f Ampere", I1) +I2=5; +printf("\nI2=4/8= %2f Ampere", I2) +disp("Applying KVL to the path from A to B") //Applying KVL to the path from A to B +disp("VA - 3*I1 - 8 + 3*I2 - VB = 0"); +disp("VA - VB = 3*1.25 + 8 - 3*5") +VAB= (3*1.25)+8-(3*5); +printf("VAB = %.2f Volt", VAB); \ No newline at end of file -- cgit