summaryrefslogtreecommitdiff
path: root/620/CH24/EX24.2/example24_2.sce
blob: 8810f19977a96ddefdcaff8ec6a955275035ecc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);