summaryrefslogtreecommitdiff
path: root/3811/CH3/EX3.6/Ex3_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3811/CH3/EX3.6/Ex3_6.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3811/CH3/EX3.6/Ex3_6.sce')
-rw-r--r--3811/CH3/EX3.6/Ex3_6.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3811/CH3/EX3.6/Ex3_6.sce b/3811/CH3/EX3.6/Ex3_6.sce
new file mode 100644
index 000000000..54ae9efc9
--- /dev/null
+++ b/3811/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,29 @@
+//Book name: Fundamentals of electrical drives by Mohamad A. El- Sharkawi
+//chapter 3
+//example 3.6
+//edition 1
+//publisher and place:Nelson Engineering
+clc;
+clear;
+R=10;//resistance of the load in ohm
+L=0.03;//inductance in H
+Vrms=100;//source voltage in volt
+f=60;//frequency in Hz
+alpha=60;//triggering angle in degree
+omega=2*%pi*f;
+tau=L/R;
+Q=atand((omega*L)/R);
+//iteration method
+xold=1;//assumed value
+x=Q+asind(sind(Q-alpha)*exp((-1)*(((xold-alpha)*(%pi/180))/(omega*tau))));
+err=10;//assumed value
+while(err>0.01)
+ xnew=Q+asind(sind(Q-alpha)*exp((-1)*((x-alpha)*(%pi/180)/(omega*tau))));
+ x=xnew;
+ err=abs(xnew-xold);
+ xold=x;
+ end
+disp(x,'The value of beta in degree is')
+r=x-alpha;
+disp(r,'The conduction period in degree is ')
+//The answer given in the book is wrong.While using the book answer both LHS and RHS are not equal.