summaryrefslogtreecommitdiff
path: root/1757/CH6/EX6.22/EX6_22.sce
blob: 05ec1beda796020a54ab7aad30eb89472c4ef20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example6.22  // To determine the output voltage
clc;
clear;
close;
Vin = 2 ;
R2 = 20*10^3 ;
R1 = 2*10^3 ;

// the output voltage of follower Vo1 is
Vo1 = Vin ;
disp('the output voltage of follower Vo1 is = '+string(Vo1)+ '  V');
// the output voltage of an inverting amplifier
Vo = -(R2/R1)*Vo1 ;
disp('The output voltage of an inverting amplifier is = '+string(Vo)+ ' V ');