summaryrefslogtreecommitdiff
path: root/3769/CH13/EX13.17/Ex13_17.sce
blob: bda77b716752ad5b3d73d20e0319d839ba9b0e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
C=50*10**-6                          //F
V=230                                 //V

//Calculation
//
q=C*V*sqrt(2)
E=0.5*C*(V*sqrt(2))**2

//Result
printf("\n (i) Maximum charge on the capacitor is %0.2f  *10**-3 C",q*10**3)
printf("\n (ii) The maximum energy stored in the capacitor is %0.2f  J",E)