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/CH1/EX1.2 | |
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/CH1/EX1.2')
-rw-r--r-- | 147/CH1/EX1.2/Example1_2.sce | 16 | ||||
-rw-r--r-- | 147/CH1/EX1.2/Result1_2.txt | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/147/CH1/EX1.2/Example1_2.sce b/147/CH1/EX1.2/Example1_2.sce new file mode 100644 index 000000000..304cb5de0 --- /dev/null +++ b/147/CH1/EX1.2/Example1_2.sce @@ -0,0 +1,16 @@ +//Resistance R1,R2 and R3 connected in series, Voltage V
+close();
+clear;
+clc;
+R1 = 5;//ohm
+R2 = 7;
+R3 = 8;
+V = 100;
+//Total Resistance 'Res'
+Res = R1+R2+R3;
+I = V/Res;
+//Voltage across R1 'V1'
+V1 = R1*I;
+V2 = R2*I;
+V3 = R3*I;
+mprintf('Current, I = %0.0f A \nVoltage across the 5 ohm = %0.0f V\nVoltage across the 7 ohm = %0.0f V\nVoltage across the 8 ohm = %0.0f V',I,V1,V2,V3);
\ No newline at end of file diff --git a/147/CH1/EX1.2/Result1_2.txt b/147/CH1/EX1.2/Result1_2.txt new file mode 100644 index 000000000..ee6196b66 --- /dev/null +++ b/147/CH1/EX1.2/Result1_2.txt @@ -0,0 +1,4 @@ +Current, I = 5 A
+Voltage across the 5 ohm = 25 V
+Voltage across the 7 ohm = 35 V
+Voltage across the 8 ohm = 40 V
\ No newline at end of file |