diff options
Diffstat (limited to '620/CH24/EX24.2/example24_2.sce')
-rw-r--r-- | 620/CH24/EX24.2/example24_2.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/620/CH24/EX24.2/example24_2.sce b/620/CH24/EX24.2/example24_2.sce new file mode 100644 index 000000000..8810f1997 --- /dev/null +++ b/620/CH24/EX24.2/example24_2.sce @@ -0,0 +1,14 @@ +l=30*10^(-3);
+r=200;
+v=10;
+f=1000;
+disp("Part a");
+x_l=2*%pi*f*l;
+z=sqrt(r^2+x_l^2);
+disp("the impedance (in Ω) of the circuit is"); disp(z);
+disp("Part b");
+i=v/z;
+disp("the current (in A) in the circuit is"); disp(i);
+disp("Part c");
+deg=atan(x_l/r)*180/%pi;
+disp("the phase angle (in deg) between applied voltage and current is"); disp(deg);
\ No newline at end of file |