summaryrefslogtreecommitdiff
path: root/620/CH7/EX7.7/example7_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH7/EX7.7/example7_7.sce')
-rw-r--r--620/CH7/EX7.7/example7_7.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/620/CH7/EX7.7/example7_7.sce b/620/CH7/EX7.7/example7_7.sce
new file mode 100644
index 000000000..dc47f1cc2
--- /dev/null
+++ b/620/CH7/EX7.7/example7_7.sce
@@ -0,0 +1,8 @@
+v1=9;
+v2=12;
+i=100*10^(-3);
+v=v2-v1;
+r=v/i;
+disp("the value of the resistor (in Ω) is"); disp(r);
+p=v*i;
+disp("power rating (in W) of the required resistor is"); disp(p); \ No newline at end of file