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.29/Ex2_29.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.29/Ex2_29.sce')
-rw-r--r-- | 1445/CH2/EX2.29/Ex2_29.sce | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/1445/CH2/EX2.29/Ex2_29.sce b/1445/CH2/EX2.29/Ex2_29.sce index e09038cf4..0f2920b3b 100644 --- a/1445/CH2/EX2.29/Ex2_29.sce +++ b/1445/CH2/EX2.29/Ex2_29.sce @@ -1,10 +1,10 @@ //CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT //Example 29 // read it as example 28 in the book on page 2.83 +clc; disp("CHAPTER 2"); disp("EXAMPLE 29"); -// -//i=120.si(2.pi.f.t) + //VARIABLE INITIALIZATION I=120; //Amplitude in Amps f=60; //Hz @@ -16,11 +16,11 @@ i2=96; //in Amps ,2 to find time taken to reach this w=2*%pi*f; i=I*sin(w*t1); disp("SOLUTION (a)"); -disp(sprintf("The amplitude at time %.3f sec is %.1f Amp", t1,i)); +disp(sprintf("The amplitude at time %f sec is %f Amp", t1,i)); //solution (b) t2=(asin(i2/I))/w; disp("SOLUTION (b)"); -disp(sprintf("The time taken to reach %2.0f Amp is %.5f Sec", i2,t2)); +disp(sprintf("The time taken to reach %f Amp is %f Sec", i2,t2)); disp(" "); // //END |