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 /3673/CH1/EX1.a.1/Example_a_1_1.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 '3673/CH1/EX1.a.1/Example_a_1_1.sce')
-rw-r--r-- | 3673/CH1/EX1.a.1/Example_a_1_1.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3673/CH1/EX1.a.1/Example_a_1_1.sce b/3673/CH1/EX1.a.1/Example_a_1_1.sce new file mode 100644 index 000000000..34e4d5c2d --- /dev/null +++ b/3673/CH1/EX1.a.1/Example_a_1_1.sce @@ -0,0 +1,19 @@ +//Example 1_1 page no:20
+clc;
+Rt=1.7*10^3;
+R=3*10^3;
+It=6/Rt;
+It=It*1000;//converting to milli Ampere
+I10k=6/(10*10^3);
+I10k=I10k*1000;//converting to milli Ampere
+I3k=6/(3*10^3);
+I3k=I3k*1000;//converting to milli Ampere
+I4k=It-(I3k+I10k);
+I4_7k=I4k*(5/(5+4.7));
+V3k=I3k*R*10^-3;
+disp(It,"the total current is (in mA)");
+disp(I10k,"the current through 10k resistor is (in mA)");
+disp(I3k,"the current through 3k resistor is (in mA)");
+disp(I4k,"the current through 4k resistor is (in mA)");
+disp(I4_7k,"the current through 4.7k resistor is (in mA)");
+disp(V3k,"the voltage across 3k resistor is (in V)");
|