blob: 31454cd1c0b747b22c992ebcf5702016fd652d33 (
plain)
1
2
3
4
5
6
7
8
9
10
|
v=120;
f=60;
i=5;
p=525;
disp("Part a");
s=i*v;
disp("the apparent power (in VA) is"); disp(s);
disp("Part b");
q=sqrt(s^2-p^2);
disp("the reactive power (in VAr) is"); disp(q);
|