blob: 43ed4c2b088611405259630d11bbe2f1f772c91e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
r=300;
x_l=400;
v=120;
f=60;
disp("Part a");
p=v^2/r;
disp("the true power (in W) is"); disp(p);
disp("Part b");
q=v^2/x_l;
disp("the reactive power (in VAr) is"); disp(q);
disp("Part c");
s=sqrt(p^2+q^2);
disp("the apparent power (in VA) is"); disp(s);
i=s/v;
disp("the current drawn (in A) from the supply is"); disp(i);
|