summaryrefslogtreecommitdiff
path: root/1628/CH3/EX3.1/Ex3_1.sce
blob: 6c1f6164a2d51fff421ed5e222229d3af0c6c101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32


                             // Examle 3.1

A=0.113;                   // Area of parallel plate 
eo=8.854*10^-12;           // Permittivity of free space 
er=10;                     // Relative Permittivity 
d=0.1*10^-3;               // Distance between 2 Plate
C=(eo*er*A)/d;             // The value of capacitor Using case-1
disp(' The value of capacitor Using case-1 = '+string(C*1000000)+' uF');

w=0.05;                    // Energy stored
v=100;                     // Voltage
C1=(2*w)/v^2;              // The value of capacitor Using case-2
disp(' The value of capacitor Using case-2 = '+string(C1*1000000)+' uF');

i=5*10^-3;                 // Current
dv=100;                    // Increase iv voltage
dt=0.1;                    // Time required 
C2=i/(dv/dt);              // The value of capacitor Using case-3
disp(' The value of capacitor Using case-3 = '+string(C2*1000000)+' uF');






              //  p 53     3.1