summaryrefslogtreecommitdiff
path: root/3850/CH31/EX31.1/Ex31_1.sce
blob: 0500825ed43f3c416b22209abe8b5d455010a6c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

//To Calculate the Capacitance of the capacitor

//Example 31_1

clear;

clc;

Q=60*10^-6;//Charge on the capacitor

V=12;//Potential difference between the plates

C=Q/V;//Formula for finding the capacitance of the capacitor

printf("Capacitance of the capacitor=%f *10^-6 F",C*10^6);