diff options
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 |