summaryrefslogtreecommitdiff
path: root/620/CH12/EX12.8/example12_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH12/EX12.8/example12_8.sce')
-rw-r--r--620/CH12/EX12.8/example12_8.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/620/CH12/EX12.8/example12_8.sce b/620/CH12/EX12.8/example12_8.sce
new file mode 100644
index 000000000..d05d49035
--- /dev/null
+++ b/620/CH12/EX12.8/example12_8.sce
@@ -0,0 +1,12 @@
+im=0.05;
+s=1/im;
+rm=3;
+v1=5;
+v2=15;
+v3=50;
+r1=s*v1-rm;
+disp("the value of R1 (in kΩ) is"); disp(r1);
+r2=s*v2-(rm+r1);
+disp("the value of R2 (in kΩ) is"); disp(r2);
+r3=s*v3-(rm+r1+r2);
+disp("the value of R1 (in kΩ) is"); disp(r3); \ No newline at end of file