summaryrefslogtreecommitdiff
path: root/2459/CH9/EX9.27/Ex9_27.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH9/EX9.27/Ex9_27.sce')
-rw-r--r--2459/CH9/EX9.27/Ex9_27.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2459/CH9/EX9.27/Ex9_27.sce b/2459/CH9/EX9.27/Ex9_27.sce
new file mode 100644
index 000000000..bb5c3e7bf
--- /dev/null
+++ b/2459/CH9/EX9.27/Ex9_27.sce
@@ -0,0 +1,22 @@
+//chapter9
+//example9.27
+//page174
+
+R=200 // ohm
+Rl=2000 // ohm
+Eo=30 // V
+
+// for minimum input voltage i.e. Iz=0
+Il=Eo/Rl
+I=Il // since Iz=0
+Vin_min=Eo+I*R
+
+// for maximum input voltage i.e. Iz=25 mA
+Iz=25d-3 // A
+Il_dash=Eo/Rl
+I_dash=Il_dash+Iz
+Vin_max=Eo+I_dash*R
+
+printf("minimum input voltage = %.3f V \n",Vin_min)
+printf("maximum input voltage = %.3f V \n",Vin_max)
+printf("thus range of input = %.3f to %.3f V \n",Vin_min,Vin_max)