summaryrefslogtreecommitdiff
path: root/275/CH2/EX2.2.57/Ch2_2_57.sce
diff options
context:
space:
mode:
Diffstat (limited to '275/CH2/EX2.2.57/Ch2_2_57.sce')
-rwxr-xr-x275/CH2/EX2.2.57/Ch2_2_57.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/275/CH2/EX2.2.57/Ch2_2_57.sce b/275/CH2/EX2.2.57/Ch2_2_57.sce
new file mode 100755
index 000000000..fefc22898
--- /dev/null
+++ b/275/CH2/EX2.2.57/Ch2_2_57.sce
@@ -0,0 +1,28 @@
+clc
+disp("Example 2.57")
+printf("\n")
+disp("Calculate the value of series resistance & Zener diode current when load is 1200ohm")
+printf("Given\n")
+printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n")
+//Input voltage
+Vi=32
+//Zener diode voltage
+Vz=24
+//maximum power
+Pzmax=600*10^-3
+//output voltage
+Vo=24
+//since Vi has no variation
+Vimax=32
+Vimin=Vimax
+//Zener current
+Izmax=Pzmax/Vz
+//series resistance
+ILmin=0
+R=(Vimax-Vo)/(Izmax+ILmin)
+//Diode current
+RL=1200
+IL=Vo/RL //load current
+I=(Vi-Vo)/R //total current
+IZ=I-IL
+printf("The diode current=\t%f ampere\n",IZ)