summaryrefslogtreecommitdiff
path: root/275/CH6/EX6.6.32/Ch6_6_32.sce
blob: 302dad254ae718294c9d482aa72290e713a255b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
disp("Example 6.32")
printf("\n")
disp("Calculate Gain & input voltage")
printf("Given")
disp("Rf=100K,R1=10K")
Rf=100*10^3
R1=10^4
//calculate voltage gain
Af=1+(Rf/R1)
Vo=4
//calculate input voltage
Vi=Vo/Af
//display values
printf("Closed loop gain =%f\n",Af)
printf("Input voltage=%f volt",Vi)