diff options
Diffstat (limited to '1445/CH2/EX2.44/ch2_ex_44.sce')
-rw-r--r-- | 1445/CH2/EX2.44/ch2_ex_44.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1445/CH2/EX2.44/ch2_ex_44.sce b/1445/CH2/EX2.44/ch2_ex_44.sce new file mode 100644 index 000000000..6de089188 --- /dev/null +++ b/1445/CH2/EX2.44/ch2_ex_44.sce @@ -0,0 +1,19 @@ +//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT +//Example 44 + +disp("CHAPTER 2"); +disp("EXAMPLE 44"); + +//VARIABLE INITIALIZATION +r=20; //in Ohms + +//SOLUTION +p0=(4^2)*r; +p1=((5/sqrt(2))^2)*r; +p2=((3/sqrt(2))^2)*r; +p=p0+p1+p2; +I=sqrt(p/r); +disp(sprintf("The power consumed by the resistor is %d W",p)); +disp(sprintf("The effective value of current is %f A",I)); + +//END |