diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1523/CH1/EX1.7/1_7.sce | |
download | Scilab-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.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 |