summaryrefslogtreecommitdiff
path: root/181/CH7/EX7.40/example7_40.sce
blob: 7bfe273bd405f796ea7611edff945c3769b9ad4e (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
// Calculate voltage gain Av
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 7-40 in page 342

clear; clc; close;

// Given data
gm=2*10^-3; // Transconductance in mA/V
rd=10*10^3; // Dynamic resistance in K-ohms
Zc=31.83*10^3; // Capacitive impedance in K-ohms
Vth=16.67; // Thevenin voltage in V at 1 KHz

// Calculation
R=(rd*25*10^3)/(rd+(25*10^3));
Av=-gm*R;
printf("(a)Av after neglecting capacitance = %0.2f\n",Av);
Rth=(rd*50*10^3)/(rd+50*10^3);
Av1=(-50*10^3*Vth)/((50*10^3+Rth)-%i*Zc);
printf("(b)Av after considering capacitance = %0.2f",Av1);

// Result
// Av after neglecting capacitance = -14.28
// Av after considering capacitance = -11.01