summaryrefslogtreecommitdiff
path: root/199/CH2/EX2.1.a/Example_2_1_a.sce
blob: 150113a30c76230f34da702f12795027f411141b (plain)
1
2
3
4
5
6
7
8
9
10
//Chapter2
//Page.No-45, Figure.No-2.9
//Example_2_1_a
//Output voltage for open-loop differential amplifier
//Given:
clear;clc;
vin1=5*10^-6;vin2=-7*10^-6;  // Both input voltages are in volts
A=200000; // Voltage gain
vo=A*(vin1-vin2); //Output voltage in volts
printf("\n Output voltage is vo = %.1f V dc \n",vo) // Result