diff options
Diffstat (limited to '620/CH22/EX22.1/example22_1.sce')
-rw-r--r-- | 620/CH22/EX22.1/example22_1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/620/CH22/EX22.1/example22_1.sce b/620/CH22/EX22.1/example22_1.sce new file mode 100644 index 000000000..6e0995037 --- /dev/null +++ b/620/CH22/EX22.1/example22_1.sce @@ -0,0 +1,13 @@ +c=4*10^(-6);
+v1=16;
+v2=24;
+t=2*10^(-3);
+disp("Part a");
+rate=(v2-v1)/t;
+disp("the average rate of change of voltage (in V/s) is"); disp(rate);
+disp("Part b");
+i=c*rate;
+disp("the average current (in mA) into the capacitor is"); disp(i*10^3);
+disp("Part c");
+q=c*(v2-v1);
+disp("the increase in charge (in μC) on the capacitor is"); disp(q*10^6);
\ No newline at end of file |