blob: 5d16d7208310b67aa4e9eb062b305552ce2ea60f (
plain)
1
2
3
4
5
6
7
8
9
|
p=300;
q=115;
s=321;
disp("Part a");
pf=p/s;
disp("power factor of the combination is"); disp(pf);disp("lagging");
disp("Part b");
deg=acos(pf)*180/%pi;
disp("the phase angle (in deg) between the applied voltage and current is"); disp(deg);
|