diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1445/CH2/EX2.32 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1445/CH2/EX2.32')
-rw-r--r-- | 1445/CH2/EX2.32/Ex2_32.sce | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/1445/CH2/EX2.32/Ex2_32.sce b/1445/CH2/EX2.32/Ex2_32.sce index dcbdbaf4a..a48c72871 100644 --- a/1445/CH2/EX2.32/Ex2_32.sce +++ b/1445/CH2/EX2.32/Ex2_32.sce @@ -1,16 +1,15 @@ //CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT //Example 32 // read it as example 31 in the book on page 2.85 +clc; disp("CHAPTER 2"); disp("EXAMPLE 32"); //VARIABLE INITIALIZATION //function of the waveform is deduced to be i=Im.sinΘ //SOLUTION -//Average value of current is Iav=area of rectified wave/interval -//Can be achieved by integration //Iav=(1/2.π).Integral(ydΘ) from 0 to π, and π to 2.π is zero, interval is 2.π -//need to assume values, let Im=1 +// //say Im=1; // in Amp Iav=(1/(2*%pi))*integrate('(Im*sin(th))', 'th', 0, %pi); @@ -19,7 +18,7 @@ Iav=(1/(2*%pi))*integrate('(Im*sin(th))', 'th', 0, %pi); Ims=(1/(2*%pi))*integrate('(Im*sin(th))^2', 'th', 0, %pi); //disp(sprintf("The RMS value of waveform is %f", sqrt(Ims))); ff=sqrt(Ims)/Iav; -disp(sprintf("The form factor of waveform is %.2f",ff)); +disp(sprintf("The form factor of waveform is %f",ff)); disp(" "); // //END |