blob: 673c0e53c2c16d326fd6e0b76db3b0f7160c4e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//Book name: Fundamentals of electrical drives by Mohamad A. El- Sharkawi
//chapter 3
//example 3.5
//edition 1
//publishing place:Thomson Learning
clc;
clear;
Vsrms=110;//The voltage on the ac side in volts
R=5;//Resistance value of the resistive load in ohm
Vrms=55;//voltage across the load
//iteration method
xold=1;//assumed value
x=(180/%pi)*(2.25+(sind(2*xold)/2));
err=100;//assumed value
while(err>0.0001)
xnew=(180/%pi)*(2.25+(sind(2*x)/2));
x=xnew;
err=abs(xnew-xold);
xold=x;
end
disp(x,'The triggering angle in degree is')
P=(Vrms)^2/R;
disp(P,'The load power in watt is:')
//The answer given in the book is wrong
|