summaryrefslogtreecommitdiff
path: root/2882/CH14/EX14.14/Ex14_14.sce
blob: 02d20e0064f3704bb77fa96d8739c922fb90d569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Tested on Windows 7 Ultimate 32-bit
//Chapter 14 Operational Amplifiers Pg no. 442 and 443
clear;
clc;

//Given
//Figure 14.33

V1=2;V2=1;V3=5.5;V4=2.2;V5=1.1//input voltages in volts
R=50D3;//input resistances R1,R2,R3,R4 in ohms
R5=10D3;//feedback resistance in ohms

//Solution

A=-R5/R;//gain for each input
disp("(a)");
Vo=A*(V1+V2+V3+V4+V5);//output voltage in volts
printf("Normal output voltage Vo = %.2f Volts",Vo);
disp("(b)");
Vo=A*(V1+V2+V4+V5);//output voltage in volts
printf("For R3 open, output voltage Vo = %.2f Volts",Vo);