diff options
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 |