summaryrefslogtreecommitdiff
path: root/1523/CH1/EX1.8/1_8.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH1/EX1.8/1_8.sce
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 '1523/CH1/EX1.8/1_8.sce')
-rwxr-xr-x1523/CH1/EX1.8/1_8.sce12
1 files changed, 12 insertions, 0 deletions
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