summaryrefslogtreecommitdiff
path: root/1757/CH6/EX6.35/EX6_35.sce
blob: 2edb5f81bd317872324efeee2233444804d0e8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example6_35  // Design a difference amplifier
clc;
clear;
close;
Ri = 50*10^3 ;
Ad = 30 

R1 = Ri/2 ;
disp('The value of resistance R1 is = '+string(R1)+ ' ohm');
R3 = R1 ;
disp('The value of resistance R3 is = '+string(R3)+ ' ohm');

// the differential gain
//Ad = R2/R1 ;
R2 = 30*R1 ;
disp('The value of resistance R2 is = '+string(R2)+ ' ohm');

R4 = R2 ;
disp('The value of resistance R4 is = '+string(R4)+ ' ohm');