blob: d04ef45503d0a7ae78f3e46670aa5efc33dd12a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Tested on Windows 7 Ultimate 32-bit
//Chapter 1 Introduction to Electronics Pg no. 29
clear;
clc;
//Given Data
//Fig 1.33
vi=6D-3;//input volatage in volts
Rin=1200;//input resistance in ohms
Ai=100;//current gain
Ro=25000;//output resistance in ohms
Rl=1000;//load impedance
//Solution
is=vi/Rin;//Input current
i2=Ai*is;//Output circuit current source value
iL=i2*(Ro/(Ro+Rl));//Current divider to find load current
Vout=iL*Rl;
printf("The output voltage is Vout=%.2f V",Vout);//Displaying upto 2 places of decimal
|