summaryrefslogtreecommitdiff
path: root/3754/CH13/EX13.4/13_4.sce
blob: 87e09eab671530f485b9de0d5e343e9dfc4aacba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear//

//Variables

VZ = 4.7                          //Zener voltage (in volts)
rZ = 15                           //Resistance (in ohm)
IZ = 20 * 10**-3                  //Current (in Ampere)

//Calculation

VZ1 = VZ + IZ * rZ                //Terminal voltage of a zener diode (in volts)
 
//Result

printf("\n Terminal voltage of the zener diode is  %0.3f  V.",VZ1)