summaryrefslogtreecommitdiff
path: root/1850/CH5/EX5.4/exa_5_4.sce
blob: 18a27f27e0af0b9ab33cdbee4df6e56f272fcc69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Exa 5.4
clc;
clear;
close;
// Given data
V1= 2;// in volt
V2= -1;// in volt
// Let R1= (R||R)/(R+(R||R))= (R/2)/(R+R/2) = 1/3
R1=1/3;
Vs1= V1*R1;// in volt
// Let R2= (1+Rf/R)= (1+2*R/R)= 3
R2= 3;
Vo_desh= Vs1*R2;// in volt
Vs2= V2*R1;// in volt
Vo_doubleDesh= Vs2*R2;// in volt
V_out= Vo_desh+Vo_doubleDesh;// in volt
disp(V_out,"Output voltage in volt")