diff options
Diffstat (limited to '569/CH6/EX6.24/6_24.sci')
-rwxr-xr-x | 569/CH6/EX6.24/6_24.sci | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/569/CH6/EX6.24/6_24.sci b/569/CH6/EX6.24/6_24.sci new file mode 100755 index 000000000..854225992 --- /dev/null +++ b/569/CH6/EX6.24/6_24.sci @@ -0,0 +1,13 @@ +// calculating the current
+clc;
+R2=1000;
+R3=1000;
+R1=1010;
+R4=1000;
+ei=100;
+eo=[(R1*R4-R2*R3)/((R1+R3)*(R2+R4))]*ei;
+disp(eo, 'open circuit voltage (V)=')
+Ro=[R1*R4/(R1+R4)]+[R2*R3/(R2+R3)];
+Rm=4000;
+im=eo/(Ro+Rm);
+disp(im,'current (A)=')
|