summaryrefslogtreecommitdiff
path: root/569/CH6/EX6.32/6_32.sci
blob: 4a43319bd7f997edf6e7b7438bb46dc54aee09c2 (plain)
1
2
3
4
5
6
7
8
// Calculating the output voltage
clc;
n=6;
R=10000;
Io= (10/10*10^3)*{1*1+1*0.5+1*0.25+0*0.125+1*0.0625}*10^-6;
Rf=5000;
Eo=-Io*Rf;
disp(Eo,'Output voltage (V)=')