summaryrefslogtreecommitdiff
path: root/275/CH6/EX6.6.28/Ch6_6_28.sce
blob: 43b7ade4955e290f1382b72a8d65534dee50a998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
disp("Example 6.28")
printf("\n")
disp("Calculate closed loop gain & input voltage to get output voltage 2v")
printf("given")
disp("Rf=1M,R1=20K,output voltage=2V")
Rf=10^6
R1=20*10^3
Vo=2
//calculate closed loop gain
Af=(-Rf/R1)
//calculate input voltage
Vi=Vo/Af
printf("closed loop voltage gain=%f\n",Af)
printf("Input voltage=%f",Vi)