summaryrefslogtreecommitdiff
path: root/2498/CH6/EX6.m.10/ex_m_6_10.sce
blob: df6d0e6e2dee3857302b57d493a6eb8215d48f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa Misc. 6.10
clc;
clear;
close;
format('v',6)
// Given data
R_F = 60;// in ko hm
R1 = 20;// in k ohm
Vin1 = 2;// in V
Vin2 = 0.1;// in V
// The output voltage, by using super position theorm,
Vo = ((-R_F/R1)*Vin1) + ((1+(R_F/R1))*Vin2);// in V
disp(Vo,"The output voltage in V is");