summaryrefslogtreecommitdiff
path: root/3769/CH13/EX13.18/Ex13_18.sce
blob: 073810e06c1b372b44354f79dc5d0c32e09f2427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
I0=10                 //A
w=314
L=5

//Calculation
E=0.5*L*I0**2
E0=w*L*I0
C=(E*2)/(E0**2)

//Result
printf("\n Capacitance of the capacitor is %0.2f  micro F",C*10**6)