diff options
Diffstat (limited to '1445/CH2/EX2.24')
-rw-r--r-- | 1445/CH2/EX2.24/ch2_ex_24.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1445/CH2/EX2.24/ch2_ex_24.sce b/1445/CH2/EX2.24/ch2_ex_24.sce new file mode 100644 index 000000000..3d18a4021 --- /dev/null +++ b/1445/CH2/EX2.24/ch2_ex_24.sce @@ -0,0 +1,27 @@ +//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT +//Example 22 // read it as example 23 in the book on page 2.77 + +disp("CHAPTER 2"); +disp("EXAMPLE 24"); + +//VARIABLE INITIALIZATION +V=200 //Amplitude in Volts +w=314 //angular spped +R=20 //in ohms +//SOLUTION + +//solution +//comparing with standard equation +Im=V/R; // in Amps +rms=Im/2; +Iav=Im/%pi; //average current +ff=rms/Iav; +disp("SOLUTION"); +disp(sprintf("RMS value of current is %3f A", rms)); +disp(sprintf("Average value of current is %3f A", Iav)); +disp(sprintf("Form Factor of current is %3f A", ff)); +disp(" "); +// +//END + + |