diff options
Diffstat (limited to '1523/CH1/EX1.7/1_7.sce')
-rwxr-xr-x | 1523/CH1/EX1.7/1_7.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1523/CH1/EX1.7/1_7.sce b/1523/CH1/EX1.7/1_7.sce new file mode 100755 index 000000000..270e02999 --- /dev/null +++ b/1523/CH1/EX1.7/1_7.sce @@ -0,0 +1,13 @@ +//Basic Circuit Concepts
+//page no-1.13
+//example1.7
+I1=5/2;
+printf("I1=2/5= %2f Ampere", I1)
+I2=2;
+printf("\nI2=4/8= %2f Ampere", I2)
+disp("Potential difference VAB = VA - VB");
+disp("Writing KVL equations for path A to B") //Writing KVL equations for path A to B
+disp("VA - 2*I1 + 8 - 5*I2 - VB = 0");
+disp("VA - VB = (2*2.5) - 8 5 + (5*2)");
+VAB=(2*2.5)-8+(5*2)
+printf("VAB = %.2f Volt", VAB);
\ No newline at end of file |