summaryrefslogtreecommitdiff
path: root/929/CH5/EX5.1.d/Example5_1_d.sce
blob: 012613739602b813fbd5a6ad0e570990b573c5db (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(d)

clear;

clc;

R1=22*10^2;

R2=2.2*10^5;

IB=80*10^(-9);

IOS=3*10^(-9);

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

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

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

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

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

Eo=dcgain*((R*In)-(Rp*Ip));

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