summaryrefslogtreecommitdiff
path: root/181/CH2/EX2.31
diff options
context:
space:
mode:
Diffstat (limited to '181/CH2/EX2.31')
-rwxr-xr-x181/CH2/EX2.31/example2_31.sce26
-rwxr-xr-x181/CH2/EX2.31/example2_31.txt2
2 files changed, 28 insertions, 0 deletions
diff --git a/181/CH2/EX2.31/example2_31.sce b/181/CH2/EX2.31/example2_31.sce
new file mode 100755
index 000000000..21909f6bb
--- /dev/null
+++ b/181/CH2/EX2.31/example2_31.sce
@@ -0,0 +1,26 @@
+// Maximum and minimum Zener currents
+// Basic Electronics
+// By Debashis De
+// First Edition, 2010
+// Dorling Kindersley Pvt. Ltd. India
+// Example 2-31 in page 110
+
+clear; clc; close;
+
+// Given data
+V_z=10; // Zener voltage in V
+R_s=1*10^3; // Shunt resistance in K-ohm
+R_l=10*10^3; // Load resistance in K-ohm
+Vi_max=40; // Maximum input voltage in V
+Vi_min=25; // Minimum input voltage in V
+
+// Calculation
+I_zmax=((Vi_max-V_z)/1000)-(5*10^-3);
+I_zmin=((Vi_min-V_z)/R_s)-(5*10^-3);
+
+printf("Maximum value of zener current = %0.2e A\n",I_zmax);
+printf("Minimum value of zener current = %0.2e A",I_zmin);
+
+// Result
+// Maximum zener current = 25 mA
+// Minimum zener current = 10 mA \ No newline at end of file
diff --git a/181/CH2/EX2.31/example2_31.txt b/181/CH2/EX2.31/example2_31.txt
new file mode 100755
index 000000000..9612d7cb2
--- /dev/null
+++ b/181/CH2/EX2.31/example2_31.txt
@@ -0,0 +1,2 @@
+ Maximum value of zener current = 2.50e-002 A
+Minimum value of zener current = 1.00e-002 A \ No newline at end of file