blob: 85b233b0490b9533911750ad9bf9d0e97a41458c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//To determine the max regulation and the pf at which it occurs
clc;
clear;
Vr=2.5;
Vx=5;
printf('The expression for voltage requlation is y= %g cos(phi) + %g sin(phi) \n',Vr,Vx )
printf('Differenciating w.r.t phi and equating it to zero, we get the power factor angle \n')
printf('We get tan(phi)=> Vr/Vx => 5/2.5 => 2 \n \n')
phi=atand(Vx/Vr); // power factor angle
y= Vr*cosd(phi)+Vx*sind(phi); // Max Volatge regulation
printf('The maximum regulation is %g percent \n and the power factor at which it occurs is %g degrees \n',y,phi)
|