summaryrefslogtreecommitdiff
path: root/3754/CH19/EX19.12/19_12.sce
blob: e3a9e1bae12fc82bd0c13c147c944d8f009a46c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

Vdc = 12.0                    //Average value of voltage (in volts)
Idc = 100.0                   //Average value of current (in milli-Ampere) 
gamma = 0.01                  //Ripple factor
L = 1.0                       //Inductance (in Henry) 

//Calculation

C = 1.195 / (gamma * L)       //Capacitance

//Result

printf("\n Capacitance is  %0.3f  micro-Farad.",C)