summaryrefslogtreecommitdiff
path: root/2459/CH20/EX20.10/Ex20_10.sce
blob: 757b6d5d2cf06d05ea20556c2dee224e64f785d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//chapter20
//example20.10
//page445

R2=1 // kilo ohm
R1=2 // kilo ohm
Vz=6 // V
Vbe=0.7 // V

m=R2/(R1+R2)
A_CL=1/m
Vout=A_CL*(Vz+Vbe)

printf("regulated output voltage = %.3f V \n",Vout)