summaryrefslogtreecommitdiff
path: root/3754/CH13/EX13.4/13_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH13/EX13.4/13_4.sce')
-rw-r--r--3754/CH13/EX13.4/13_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH13/EX13.4/13_4.sce b/3754/CH13/EX13.4/13_4.sce
new file mode 100644
index 000000000..87e09eab6
--- /dev/null
+++ b/3754/CH13/EX13.4/13_4.sce
@@ -0,0 +1,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)