summaryrefslogtreecommitdiff
path: root/2582/CH5/EX5.9/Ex5_9.sce
blob: 0d2444a669e6e2246774f9683abeca3ec26e87e3 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex 5.9
clc;clear;close;
format('v',5);
//vo/v1=-2;//Gain for -ve inputs
voBYvi=-2;//Gain for -ve inputs
//vo/v1=0;//Gain for non -ve inputs
Rin=100;//kohm
R1=100;//kohm(R1=Rin)
R2=-R1*voBYvi;//kohm
disp(R2,R1,"Values of R1 & R2(kohm) are : ");