diff options
Diffstat (limited to '1445/CH2/EX2.9')
-rw-r--r-- | 1445/CH2/EX2.9/Ex2_9.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/1445/CH2/EX2.9/Ex2_9.sce b/1445/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..0fd9a5c6d --- /dev/null +++ b/1445/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,26 @@ +//CHAPTER 2- STEADY-STATE ANALYSIS OF SINGLE-PHASE A.C. CIRCUIT +//Example 9 + +disp("CHAPTER 2"); +disp("EXAMPLE 9"); + + +//VARIABLE INITIALIZATION +V=120; //voltage of lamp in Volts +P=100; //in Watts +Vsupp=220; //supply voltage in Volts +f=50; //in Hertz +//Equations to be used +//Z=R+jXl +//Vsupply=V+jVl=sqrt(V^2+Vl^2) +//Hence Vl=sqrt(Vsupply^2-V^2) +//P=VI +//Xl=2.pi.f.L + +//SOLUTION +Vl=sqrt((Vsupp^2)-(V^2)); +Xl=(V*Vl)/P; +L=Xl/(2*%pi*f); //inductance +disp(sprintf("The pure inductance should have a value of %6.4f H",L)); //text book answer is 0.7046 H + +//END |