summaryrefslogtreecommitdiff
path: root/226/CH18/EX18.10/example10_sce.sce
blob: cb81f9b2617df278b296e370c4de6dac36d24582 (plain)
1
2
3
4
5
6
7
8
9
10
//chapter 18
//example 18.10
//page 785
printf("\n")
printf("given")
I1=1*10^-3;Vref=1.25;Vo=6;Vs=15;Il=200*10^-3;
R1=Vref/I1
R2=(Vo-Vref)/I1
Pd=(Vs-Vo)*Il;
printf("regulated power dissipation is %3.2fW\n",Pd)