diff options
Diffstat (limited to '620/CH3/EX3.14/example3_14.sce')
-rw-r--r-- | 620/CH3/EX3.14/example3_14.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/620/CH3/EX3.14/example3_14.sce b/620/CH3/EX3.14/example3_14.sce new file mode 100644 index 000000000..4dd5c2f54 --- /dev/null +++ b/620/CH3/EX3.14/example3_14.sce @@ -0,0 +1,10 @@ +disp("Part a");
+r=10;
+i=12;
+p=(i^2)*r;
+disp("power dissipated in the element (in kW) is"); disp(p/1000);
+disp("Part b");
+r1=10*10^3;
+v1=12;
+p1=(v1^2)/r1;
+disp("power dissipated in resistor (in mW) is"); disp(p1*10^3);
\ No newline at end of file |