blob: aa52b7a984bb59a0bf33bc5b2515b1aa171c4ade (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
C=100D-6
V=200
Q=C*V
Ct=100D-6+50D-6//total capacitance
Vt=Q/Ct
mprintf("P.D. across the combination =%f V\n", Vt)
EE1=100D-6*V^2/2
mprintf("Electrostatic energy before capacitors are connected in parallel=%f J\n", EE1)
EE2=Ct*Vt^2/2
mprintf("Electrostatic energy after capacitors are connected in parallel=%f J", EE2)
|