summaryrefslogtreecommitdiff
path: root/1757/CH4/EX4.3/EX4_3.sce
blob: 285922df07e8e0b36dc5ad96f673c775049e2dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 4.3 // Determine the differece voltage and open loop gain of an op-amp
clc ;
clear ;
close ;
V1 = -5 ; // volt // input voltage
V2 = 0 ; // volt  // GND
Vo = 20 ; //volt  // output voltage

// the difference voltage is given by 
 Vd = V2-V1 ;
disp('  The difference voltage is = '+string(Vd)+' V ');

// open loop gain 
A = (Vo/Vd);
disp('  The open loop gain is = '+string(A)+'  ');