blob: f8beb6a992a0bd379eff7bc4e6912a09d3a937ae (
plain)
1
2
3
4
5
6
7
8
|
//determine the value of capacitance nd current
Xc=25
V=200
f=50
C=1/(2*%pi*f*Xc)
I=V/Xc
disp('the value of capacitance ='+string(C)+'farad', 'the value of current='+string(I)+'amps')
|