diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /147/CH2/EX2.4/Example2_4.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '147/CH2/EX2.4/Example2_4.sce')
-rw-r--r-- | 147/CH2/EX2.4/Example2_4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/147/CH2/EX2.4/Example2_4.sce b/147/CH2/EX2.4/Example2_4.sce new file mode 100644 index 000000000..6db7c40e2 --- /dev/null +++ b/147/CH2/EX2.4/Example2_4.sce @@ -0,0 +1,14 @@ +//Resistance R, Voltage V, Current I
+close();
+clear;
+clc;
+R1 = 5;//ohm
+R2 = 15;
+R3 = 5;
+R4 = 4;
+R5 = 12;
+V5 = 132;//V
+I = V5/R5;
+I1 = (R1+R2)/(R1+R2+R3)*I;
+I2 = R3/(R1+R2+R3)*I;
+mprintf('I1 = %0.1f A\nI2 = %0.1f A',I1,I2);
\ No newline at end of file |