blob: c01a960e82d09f1b83956dcce0f214f71f9f0b87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 18, Example 18.4
clc
//Initialisation
RE=1.2*10**3 //resistance in ohm
RC=2.2*10**3 //resistance in ohm
//Calculation
av=-RC/RE //voltage gain
//Results
printf("Voltage gain = %.1f ",av) //wrong answer in the textbook
|