blob: ad27ae9adae2b9e16ecda0261d271fba5e4ca907 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//EX 2-90 PG NO-135
R=20; //RESISTANCE
Vc=250; //VOLTAGE
I=1; //CURRENT
F=50; //FREQUENCY
W=2*%pi*F;
C=1/(W*50); //CAPACITOR
L=1/(W*W*C); //INDUTANCE
disp('W is = '+string(W)+' ');
disp('CAPACITANCE(C) is = '+string(C)+' F');
disp('INDUCTANCE(L) is = '+string(L)+' H');
|