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 /995/CH3/EX3.7/Ex3_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 '995/CH3/EX3.7/Ex3_7.sce')
-rwxr-xr-x | 995/CH3/EX3.7/Ex3_7.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/995/CH3/EX3.7/Ex3_7.sce b/995/CH3/EX3.7/Ex3_7.sce new file mode 100755 index 000000000..79f1941fe --- /dev/null +++ b/995/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,15 @@ +//Ex:3.7
+clc;
+clear;
+close;
+E=10;
+r1=500;
+r2=600;
+r3=500;
+r4=400;
+V_a=E*(r2/(r1+r2));
+V_b=E*(r4/(r3+r4));
+V_oc=V_a-V_b;
+r=((r1*r2)/(r1+r2))+((r3*r4)/(r3+r4));
+i=(V_oc/(r+100))*1000;
+printf("Current flow in 100 ohm resistor = %f mA",i );
\ No newline at end of file |