summaryrefslogtreecommitdiff
path: root/2459/CH26/EX26.1/Ex26_1.sce
blob: 2aeae6cc9a50ab92fa73e6936974737c5002cdd4 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter26
//example26.1
//page570

R2=2.4d3 // ohm
R1=240 // ohm

V_out=1.25*(1+R2/R1)

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