blob: 145890ab0f29ea40f30c1187a7fdb49e695560a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 17, Example 17.2
clc
//Initialisation
C=10**-6 //capacitance in farad
RG=10**6 //resistance in ohm
pi=3.14 //pi
//Calculation
fc=1/(2*pi*C*RG) //frequency in Hz
//Results
printf("Fc = %.2f Hz",fc )
|