blob: 9c1117014b2692f0abbd72e75cd35378c6525d16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
disp("example 6.37")
printf("\n")
disp("calculate voltage gain,input resistance,current through R1")
printf("Given")
disp("Rf=100k,R1=10k")
disp("input voltage is 0.5v")
Rf=10^5
R1=10^4
Af=-Rf/R1
Rif=R1
Vi=0.5
I1=(Vi/R1)
printf("closed loop voltage gain is %3.1f\n",Af)
printf("input resistance is\n %3.1f ohm\n",Rif)
printf("current flowing through R1 is %f ampere\n",I1)
|