summaryrefslogtreecommitdiff
path: root/3637/CH2/EX2.2/Ex2_2.sce
blob: 119c257dfa85df490c70332b9679552f6a73fee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
//problem 2 pagenumber 2.86
//given
format(6);
v1=5;//volt
v2=2;//volt
rf1=10e3;//ohm
r1=10e3;//ohm
//determine output voltage
v0=-((-v1*rf1/r1)-(-v2*rf1/r1));
disp('Output voltage = '+string(v0)+' V');