summaryrefslogtreecommitdiff
path: root/2534/CH2/EX2.1/Ex2_1.sce
blob: f7a99d55d88197f66d1edc21e8a9136733702b9a (plain)
1
2
3
4
5
6
//Ex2_1
clc
Q = 2*10^-6; V = 10 
disp("Q = "+string(Q)+"C")// charge
disp("V = "+string(V)+"V") //voltage
disp("C = Q/V = "+string(Q/V)+"F")//calculation for capacitance