summaryrefslogtreecommitdiff
path: root/3809/CH13/EX13.3/EX13_3.sce
blob: 61ad3b770924ccec389aa2e4f3417353cda6beb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter 13, Example 13.3

clc
//Initialisation'
rl=50                                //resistance in ohm
ro=0                                  //resistance in ohm
vs=2                               //voltage
ao=10                               //output gain

//Calculation
vi=vs                     //input voltage
vo=ao*vi*(rl/(ro+rl))                  //output voltage


//Results
printf("Output Voltage = %.2f V",vo)