summaryrefslogtreecommitdiff
path: root/196/CH8/EX8.1/example_8_1.sce
blob: a3e07da0fa33be4e8b901d18adc4d80f6cfba879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter 8
//Example 8-1
//ProbOnOutputVoltage 
//Page 216, Figure 8-1
clear;clc;
//Given
m = 100 ; //Differential Gain
E1 = 10*10^-3; E2 = 10*10^-3;//input voltages
E3 = 0*10^-3; E4 = -20*10^-3;//input voltages
Vout1 = (m*E1)-(m*E2);//example 8-1(a)
Vout2 = (m*E1)-(m*E3);//example 8-1(b)
Vout3 = (m*E1)-(m*E4);//example 8-1(c)
printf ( "\n\n Output Voltages are %.4f V, %.4f V, %.4f V ", Vout1,Vout2,Vout3)