summaryrefslogtreecommitdiff
path: root/1523/CH4/EX4.82/ex4_82.sce
blob: f72590f7ad544ad5dc1e69588f8269d78f4e9b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//AC Circuits : example 4.82 :(pg 4.66)
V=230;
f0=50;
I0=2;
Vco=500;
R=V/I0;
Xco=Vco/I0;
C=(1/(2*%pi*f0*Xco));
L=(Xco/(2*%pi*f0));
printf("\nV = 230 V \nf0 = 50 Hz \nI0 = 2A \nVco = 500 V");
printf("\nR=V/I0 =%.f Ohm",R);
printf("\nXco=Vco/I0 =%.f Ohm",Xco);
printf("\nXco=1/2.pi.f0.C \nC= %.e F",C);//capacitance
printf("\nXco=Xlo \nXlo=%.f Ohm",Xco);//at resonance
printf("\nXlo=2.pi.f0.L \nL=%.3f H",L);//inductance