diff options
Diffstat (limited to '620/CH22/EX22.6/example22_6.sce')
-rw-r--r-- | 620/CH22/EX22.6/example22_6.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/620/CH22/EX22.6/example22_6.sce b/620/CH22/EX22.6/example22_6.sce new file mode 100644 index 000000000..aedb74797 --- /dev/null +++ b/620/CH22/EX22.6/example22_6.sce @@ -0,0 +1,22 @@ +v=300;
+c=500*10^(-6);
+r1=4*10^3;
+r2=10;
+disp("Part a");
+t1=5*r1*c;
+disp("time taken (in s) to fully charge is"); disp(t1);
+disp("Part b");
+i1=v/r1;
+disp("the peak charging current (in mA) is"); disp(i1*10^3);
+disp("Part c");
+t2=5*r2*c;
+disp("time taken (n ms) to fully discharge is"); disp(t2*10^3);
+disp("Part d");
+i2=v/r2;
+disp("peak discharging current (in A) is"); disp(i2);
+disp("Part e");
+w=0.5*c*v^2;
+disp("energy stored (in J) is"); disp(w);
+disp("Part f");
+p=w/t2;
+disp("average power produced (in W) by the lamp is"); disp(p);
\ No newline at end of file |