summaryrefslogtreecommitdiff
path: root/61/CH17/EX17.3/ex17_3.sce
blob: 4d6061bac95e0a594e4070efe7526104d22db122 (plain)
1
2
3
4
5
6
7
//Ex17.3
//All voltages are in Volts and Resistances in Ohms
V_REF=5.1    //Zener voltage
R2=10*10^3;
R3=10*10^3;
V_out=(1+(R2/R3))*V_REF;
disp(V_out,'output voltage in volts')