blob: 20979098a9a7c2a04cffc73d9e6bde186d2e7596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear//
//Variables
beta = 150.0 //common emitter current gain
IE = 10 //Emitter current (in milli-Ampere)
//Calculation
alpha = beta / (beta + 1) //common base current gain
IC = alpha * IE //Collector current (in milli-Ampere)
IB = IE - IC //Base current (in milli-Ampere)
//Result
printf("\n Collector current is %0.2f mA.\nBase current is %0.2f mA.",IC,IB)
|