summaryrefslogtreecommitdiff
path: root/620/CH6/EX6.8/example6_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH6/EX6.8/example6_8.sce')
-rw-r--r--620/CH6/EX6.8/example6_8.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/620/CH6/EX6.8/example6_8.sce b/620/CH6/EX6.8/example6_8.sce
new file mode 100644
index 000000000..1d378f96a
--- /dev/null
+++ b/620/CH6/EX6.8/example6_8.sce
@@ -0,0 +1,8 @@
+r1=1;
+r2=3.3;
+i=16;
+r=r1+r2;
+i1=i*r2/r;
+disp("the current (in mA) through R1 is"); disp(i1);
+i2=i*r1/r;
+disp("the current (in mA) through R2 is"); disp(i2); \ No newline at end of file