summaryrefslogtreecommitdiff
path: root/199/CH2/EX2.2.a/Example_2_2_a.sce
blob: 254b1584057f308d3d7c9ba6799b1f355123e563 (plain)
1
2
3
4
5
6
7
8
9
10
//Chapter2
//Page.No-46, Figure.No-2.10
//Example_2_2_a
//Output voltage for inverting amplifier
//Given:
clear;clc;
vin=20*10^-3;  // Input voltage in volts
A=200000; // Voltage gain
vo=-(A*vin); // Output voltage in volts
printf("\n Output voltage is vo = %.f V \n",vo) // Result