diff options
Diffstat (limited to '620/CH10/EX10.18/example10_18.sce')
-rw-r--r-- | 620/CH10/EX10.18/example10_18.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/620/CH10/EX10.18/example10_18.sce b/620/CH10/EX10.18/example10_18.sce new file mode 100644 index 000000000..e6bde3390 --- /dev/null +++ b/620/CH10/EX10.18/example10_18.sce @@ -0,0 +1,13 @@ +v=12;
+r1=1;
+r2=2;
+r3=3;
+r4=4;
+r5=5;
+ra=r2*r3/(r1+r2+r3);
+rb=r3*r1/(r1+r2+r3);
+rc=r1*r2/(r1+r2+r3);
+r=ra+(rc+r3)*(rb+r4)/(rb+rc+r3+r4);
+disp("the total resistance (in Ω) is"); disp(r);
+i=v/r;
+disp("the total current (in A) supplied by the source is"); disp(i);
\ No newline at end of file |