summaryrefslogtreecommitdiff
path: root/929/CH5/EX5.1.a/Example5_1_a.sce
blob: 19e77251609f5b1dca5f7d747e37762326278550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Example 5.1(a)

clear;

clc;

R1=22*10^3;

R2=2.2*10^6;

IB=80*10^(-9);

IOS=20*10^(-9);

Rp=0;

dcgain=(1+(R2/R1));

R=(R1*R2)/(R1+R2);

Ip=((2*IB)+IOS)/2;

In=((2*IB)-IOS)/2;

Eo=dcgain*((R*IB));

printf("Eo=(+-)%.2f mV",(Eo*10^3)-1);