diff options
Diffstat (limited to '620/CH19/EX19.10/example19_10.sce')
-rw-r--r-- | 620/CH19/EX19.10/example19_10.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/620/CH19/EX19.10/example19_10.sce b/620/CH19/EX19.10/example19_10.sce new file mode 100644 index 000000000..08c8850b2 --- /dev/null +++ b/620/CH19/EX19.10/example19_10.sce @@ -0,0 +1,18 @@ +v=12;
+r=500;
+l=200*10^(-3);
+disp("Part a");
+t1=0.1*10^(-3);
+t0=l/r;
+i=v*exp(-t1/t0)/r;
+disp("the current (in mA) 0.1 ms after the switch has been moved to position B is"); disp(i*10^3);
+disp("Part b");
+t2=20*10^(-6);
+v1=v*exp(-t2/t0);
+disp("the voltage (in V) across the inductor 20 μs after the switch has arrived at position B is"); disp(v1);
+disp("Part c");
+t3=0.2*10^(-3);
+i1=v*exp(-t3/t0)/r;
+disp("the circuit current (in mA) is"); disp(i1*10^3);
+v2=-v*exp(-t3/t0);
+disp("the inductor voltage (in V) is"); disp(v2);
\ No newline at end of file |