summaryrefslogtreecommitdiff
path: root/1523/CH1/EX1.8/1_8.sce
diff options
context:
space:
mode:
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