summaryrefslogtreecommitdiff
path: root/135/CH3/EX3.15/EX15.sce
diff options
context:
space:
mode:
Diffstat (limited to '135/CH3/EX3.15/EX15.sce')
-rwxr-xr-x135/CH3/EX3.15/EX15.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/135/CH3/EX3.15/EX15.sce b/135/CH3/EX3.15/EX15.sce
new file mode 100755
index 000000000..3700cbb13
--- /dev/null
+++ b/135/CH3/EX3.15/EX15.sce
@@ -0,0 +1,19 @@
+// Example 3.15: (a) Series resistance
+// (b) Power dissipation rating of zener diode
+clc, clear
+// In Fig. 3.38
+Vz=6; // in volts
+ILmin=0;
+ILmax=0.5; // in amperes
+Vmin=8; // in volts
+Vmax=10; // in volts
+Izmin=0;
+
+disp("Part (a)");
+Rs=(Vmin-Vz)/(ILmax+Izmin); // Series resistance in ohms
+disp(Rs,"Series resistance (Ω) =");
+
+disp("Part (b)");
+Izmax=((Vmax-Vz)/Rs)-ILmin; // in amperes
+Pzmax=Vz*Izmax; // in watts
+disp(Pzmax,"Power dissipation rating of zener diode (W) ="); \ No newline at end of file