summaryrefslogtreecommitdiff
path: root/1853/CH4/EX4.18/Ex4_18.sce
blob: 8029975041bcc8ffd2b67600e477bca3560afc52 (plain)
1
2
3
4
5
6
7
8
9
10

//calculate the current
C=25e-6;
V=200
f=60  //frequency half
f2=120  //frequency doubled
Xc=1/(2*%pi*f*C)
Xc=1/(2*%pi*f2*C)
I=V/Xc
disp('frequency half='+string(f)+'hz' ,  'frequency douled='+string(f2)+'hz')