summaryrefslogtreecommitdiff
path: root/3754/CH29/EX29.6/29_6.sce
blob: 9dc3ff0b2261402f745b1180db46b4f0459d9933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear//

//Variables

A1v = 100.0                      //Voltage gain with negative feedback
Vin = 50.0 * 10**-3              //Input voltage without feedback (in volts)
V1in = 0.6                       //Input voltage with feedback (in volts)  

//Calculation

V1o = A1v * V1in                 //Output voltage with feedback (in volts)
Vo = V1o                         //Output voltage without feedback (in volts)   
Av = Vo / Vin                    //Voltage gain without feedback 
beta = (Av/A1v - 1) / Av         //feedback ratio 

//Result

printf("\n The value of voltage gain without feedback is  %0.3f .\nThe value of voltage gain with feedback is  %0.3f .",Av,A1v)