blob: 334888238d4ef23ea2d305b4e7bac25676b2069c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear//
//Variables
R1=51.0*10**3;R2=51.0*10**3;
C1=0.001*10**-6;C2=0.001*10**-6;C=0.001*10**-6;
//Calculation
fo = 1.0/(2*%pi*R1*C1) //Resonant frequency (in Hertz)
//Result
printf("\n The frequency of oscillations is %0.1f Hz.",fo)
|