summaryrefslogtreecommitdiff
path: root/3754/CH30/EX30.11/30_11.sce
blob: 60307b6bfd3baf520aaaeb235d7ce0e9319df4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

gm = 2.0 * 10**-3                           //Transconductance (in Ampere per volt)
rd = 10.0 * 10**3                           //Resistance (in ohm)
RD = 50.0 * 10**3                           //Drain resistance (in ohm)

//Calculation

rL = RD * rd / (RD + rd)                    //a.c. equivalent resistance (in ohm)
Av = - gm * rL                              //Voltage gain

//Result

printf("\n Voltage gain is  %0.2f .",Av)