blob: c0006b4c26988d25caf5ed3d83671ce21c0e2c58 (
plain)
1
2
3
4
5
6
7
8
9
|
clc;
eo=8.85*10^-12; //constant
A=90*10^-4; //area in m square
d=2.5*10^-3; //distance in m
V=400; //in volt
C=(eo*A)/d; //calculating capacitance
disp(C,"Capacitance in Farad = "); //displaying result
W=(1/2)*(C*(V^2)); //calculating electrical energy stored
disp(W,"Electrical Energy stored in capacitor in Joule = "); //displaying result
|