blob: 0792c928c5f6faab8d3273914a72daf26bee1bf5 (
plain)
1
2
3
4
5
6
7
8
|
//EXAMPLE 2-28 PG NO-76
F=50; //Frequency
L=0.2; //inductance
XL1=500;
XL=(2*%pi*F*L);
f=XL1/(2*%pi*L); //FREQUENCY
disp(' XL is = '+string(XL)+' ohms');
disp(' frequency is = '+string(f)+' Hz');
|