blob: 220644b754a0171c413a76f11c4677dc3982f630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
disp("Problem 11.5")
printf("\n")
printf("Given")
disp("Veff=110V Ieff=20(-50 deg)")
Imagn=20;Iph =-50;
Veff=110;
P=Veff*Imagn*cos((abs(Iph)*%pi)/180)
Q=Veff*Imagn*sin((abs(Iph)*%pi)/180)
printf("Average power is %3.1fW\n",P)
printf("Reactive power is %3.1fvar\n",Q)
|