summaryrefslogtreecommitdiff
path: root/3754/CH36/EX36.1/36_1.sce
blob: beacbb131b7eefa01d374fc682c65677aed608dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear//

//Variables

R1 = 1.0 * 10**3                //Resistance (in ohm)
R2 = 100.0 * 10**3              //Resistance (in ohm)
f1 = 159.0                      //Frequency (in Hertz)

//Calculation

C = 1.0/(2*%pi*R2*f1)       //Capacitance (in Farad) 

//Result

printf("\n Capacitance required in the circuit is  %0.2f  micro-Farad.",C * 10**6)