summaryrefslogtreecommitdiff
path: root/196/CH3/EX3.3/example_3_3.sce
blob: 8e1c7baea52b2a9d41228ff76f902fc751795f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Chapter 3
//Example 3-3
//ProbOnOpampParameters 
//Page 48,49,figure 3-2
clear;clc;
//Given
Rf=250*(10^3);//Feedback Resistance in Ohms
Ri=10*(10^3);//Input Resistance in Ohms
Ei=0.5;//Input voltage
//Calculate
//Example 3-3(a)
I=Ei/(Ri);
printf("\n\n Value of current through Rf =  %.6f A \n\n",I)
//Example 3-3(b)
VRf=I*Rf;
printf("\n\n Voltage through Rf =  %.4f V \n\n",VRf)
//Example 3-3(c)
Ei1=-0.5;
Vout=-(Rf/Ri)*Ei1;
printf("\n\n Output Voltage =  %.4f V \n\n",Vout)
printf("\n\n Thus the magnitude of the output voltage does equal the voltage across Rf and Acl=-25")