summaryrefslogtreecommitdiff
path: root/2453/CH6/EX6.6/6_6.sce
blob: f0496519b389b175731e3318a0ab28dc3c650a00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//To calculate the capacitance and charge on plates
epsilon0 = 8.85*10^-12;
V = 100;     //potential, V
A = 100;     //area, cm^2
A = A*10^-4;      //area, m^2
d = 1;    //plate seperation, cm
d = d*10^-2;    //plate seperation, m
C = epsilon0*A/d;     //capacitance, farad
printf("capacitance of capacitor in F is");
disp(C);
Q = C*V;     //charge on plates
printf("charge on plates in coulomb is");
disp(Q);