blob: a469c4cc89ec19cf24ee4522623b7a2240d1b0da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
c=12*10^(-6);
v=240;
f=60;
l=0.25;
r=75;
disp("Part a");
x_l=2*%pi*f*l;
z=sqrt(r^2+x_l^2);
i=v/z;
p=i^2*r;
disp("the true power (in W)is"); disp(p);
disp("Part b");
x_c=1/(2*%pi*f*c);
q_c=v^2/x_c;
q_l=i^2*x_l;
q=q_l-q_c;
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);
i1=s/v;
disp("the total line current (in A) is"); disp(i1);
|