summaryrefslogtreecommitdiff
path: root/2459/CH9/EX9.7/Ex9_7.sce
blob: b5e10407a37e046c6e03533b9eafe8aa1c3003ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//chapter9
//example9.7
//page148

V=10 // V
V_D=0.7 // V
R_BC=2 // kilo ohm
R=2 // kilo ohm

// by Kirchoff voltage law we get
// -V_D-I_D*R_BC-2*I_D*R+V=0 thus making I_D as subject we get
I_D=(V-V_D)/(R_BC+2*R)
V_Q=2*I_D*R

printf("I_D = %.3f mA \n",I_D)
printf("V_Q = %.3f V \n",V_Q)