summaryrefslogtreecommitdiff
path: root/2234/CH4/EX4.23/ex4_23.sce
blob: f2e9661e30da66b15e6519293423ca0747d846bc (plain)
1
2
3
4
5
6
7
8
9
10
11
clc;
v=100;       //v in volt
c1=8*10^-6;  //capacitance in Farad
c2=12*10^-6;  //capacitance in Farad
c3=24*10^-6;  //capacitance in Farad
cs=4/(10^6);  //calculating series capacitance
cp=(c1+c2+c3);  //calculating parallel capacitance
disp(cs,"Equivalent Series capacitance in farad = ");  //displaying result
disp(cp,"Equivalent parallel capacitance in farad = ");  //displaying result
qs=cs*v;  //calculating charge
disp(qs,"charge on plate in Coulomb = ");  //displaying result