summaryrefslogtreecommitdiff
path: root/3809/CH4/EX4.2/EX4_2.sce
blob: 043c7054a7dd7e5465604cf4d8354c5be8503a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter 4, Example 4.2

clc
//Initialisation
eo=8.85*10^-12              //dielectric constant
er=100                    //relative permittivity
a=10*10^-3*25*10^-3       //area in metre
d=7*10^-6                 //distance between plates




//Calculation
c=(eo*er*a)/d                  //capacitance in farad



//Results
printf("Capacitance, C = %.1f nF",c*10^9)