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