diff options
Diffstat (limited to '1445/CH2/EX2.29/ch2_ex_29.sce')
-rw-r--r-- | 1445/CH2/EX2.29/ch2_ex_29.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1445/CH2/EX2.29/ch2_ex_29.sce b/1445/CH2/EX2.29/ch2_ex_29.sce new file mode 100644 index 000000000..6af15f135 --- /dev/null +++ b/1445/CH2/EX2.29/ch2_ex_29.sce @@ -0,0 +1,27 @@ +//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 + +disp("CHAPTER 2"); +disp("EXAMPLE 29"); + +//VARIABLE INITIALIZATION +I=120; //Amplitude in Amps +f=60; //Hz +t1=1/360; //in sec time to find amplitude +i2=96; //in Amps ,2 to find time taken to reach this +//SOLUTION +//i=Isin(wt) +//solution (a) +w=2*%pi*f; +i=I*sin(w*t1); +disp("SOLUTION (a)"); +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 %f Amp is %f Sec", i2,t2)); +disp(" "); +// +//END + + |