summaryrefslogtreecommitdiff
path: root/3769/CH4/EX4.36/Ex4_36.sce
blob: 4560d12f5d26a36d5bc9f9ca1be3a286e4537f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear
//Given
d=4
t=2
K=4.0
C1=50*10**-12                    //f
V0=200                           //V

//Calculation
C=(d-t+(t/K))/d
q=C1*V0
V=V0*C
U=0.5*q*V
E=0.5*q*(V0-V)

//Result
printf("\n (i) Final charge on ach plate is  %0.3f  C", q)
printf("\n (ii) P.D batween the plates is  %0.3f  volts", V)
printf("\n (iii)Final energy in the capacitor is  %0.3f  J", U)
printf("\n (iv) Energy loss is  %0.3f  J", E)