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

//Variables

gm = 2.5 * 10**-3                      //Transconductance (in Ampere per volt)
rd = 500.0 * 10**3                     //Resistance (in ohm)
RD = 10.0 * 10**3                      //Load 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.1f .",Av)