summaryrefslogtreecommitdiff
path: root/1217/CH4/EX4.2/Exa4_2.sce
blob: 81a78b728f2f9e8a6592a7f08b4dedd259cd71a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Exa 4.2
clc;
clear;
close;
// given data
disp("As the input impedence of an op-amp circuit is very high & no current will enter the op-amp, hence node voltages at (a) & (b) will be at same potential, let Va=Vb=V");
disp("writing KCL at node (b) we have (6-V)/30+(8-V)/40+(0-V)/30=0");
V=48/11;//in volts
disp(V,"Voltage V in Volt is ; ");
disp("writing KCL at node (a) we have (3-V)/10+(4-V)/20=(V-Vo)/40");
Vo=-(20-7*V);//in Volts
disp(Vo,"Output Voltage of the circuit Vo in Volt is ; ");