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.43/Ex2_43.sce | |
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.43/Ex2_43.sce')
-rw-r--r-- | 1445/CH2/EX2.43/Ex2_43.sce | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/1445/CH2/EX2.43/Ex2_43.sce b/1445/CH2/EX2.43/Ex2_43.sce index b4e1f6b76..44090eb66 100644 --- a/1445/CH2/EX2.43/Ex2_43.sce +++ b/1445/CH2/EX2.43/Ex2_43.sce @@ -1,6 +1,7 @@ //CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT //Example 43 // read it as example 42 in the book on page 2.102 +clc; disp("CHAPTER 2"); disp("EXAMPLE 43"); @@ -14,8 +15,8 @@ f=50; //Hz Iav=(1/(2*%pi))*integrate('5+5*sin(th)', 'th',0,2*%pi); Ims=(1/(2*%pi))*integrate('(5+5*sin(th))^2', 'th',0,2*%pi); // -disp(sprintf("The average value of resultant current is %.2f Amp", Iav)); -disp(sprintf("The RMS value of resultant current is %.2f Amp", sqrt(Ims))); +disp(sprintf("The average value of resultant current is %f Amp", Iav)); +disp(sprintf("The RMS value of resultant current is %f Amp", sqrt(Ims))); disp(" "); // //END |