summaryrefslogtreecommitdiff
path: root/620/CH20/EX20.10/example20_10.sce
blob: 31a6bf6716fd5474c5ac4d6ae6e37eb1f9f76ef3 (plain)
1
2
3
4
5
6
7
8
9
l1=8;
l2=4;
v=120;
f=60;
x_l1=2*%pi*f*l1;
x_l2=2*%pi*f*l2;
x_l=1/(1/x_l1+1/x_l2);
i=v/x_l;
disp("the total current (in mA) drawn from the supply is"); disp(i*10^3);