blob: 8590cfa703d20eabe3f1e09b32cbcb204aac23f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//Chapter 15, Example 15.5
clc
//Initialisation
g=2*10**5 //open loop gain
g2=20 //closed loop gain
ro=75 //ouput resistance
ri=2*10**6 //input resistance
//Calculation
ab=g/g2 //1 + AB
ro2=ro/ab //output resistance in ohm
ri2=ri*ab //input resistance in ohm
//Results
printf("Output Resistance = %.1f mOhm\n",ro2*1000)
printf("Input Resistance = %d GOhm",ri2/10**9)
|