summaryrefslogtreecommitdiff
path: root/3754/CH35/EX35.8/35_8.sce
blob: 0ff774cad94266f0191b9d55ec672c31ee118b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear//

//Variables

R1 = 1.0 * 10**3                   //Resistance (in ohm)
R2 = 2.0 * 10**3                   //Resistance (in ohm)
V1 = 1.0                           //Voltage (in volts)

//Calculation

ACL = R2 / R1                      //Closed loop voltage gain   
vo = ACL * V1                      //Output voltage (in volts)

//Result

printf("\n Output voltage of the inverting amplifier is  %0.3f  V.",vo)