summaryrefslogtreecommitdiff
path: root/2459/CH9/EX9.20/Ex9_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH9/EX9.20/Ex9_20.sce')
-rw-r--r--2459/CH9/EX9.20/Ex9_20.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2459/CH9/EX9.20/Ex9_20.sce b/2459/CH9/EX9.20/Ex9_20.sce
new file mode 100644
index 000000000..19c9f7120
--- /dev/null
+++ b/2459/CH9/EX9.20/Ex9_20.sce
@@ -0,0 +1,21 @@
+//chapter9
+//example9.20
+//page170
+
+R=5 // kilo ohm
+Rl=10 // kilo ohm
+Ei=120 // V
+Vz=50 // V
+
+V=Ei*Rl/(R+Rl) // voltage across open circuit if zener diode is removed
+Vo=Vz // output voltage
+V_R=Ei-Vz // drop across R
+Il=Vz/Rl // load current
+I=V_R/R // current through R
+
+// by Kirchoff first law I=Iz+Il
+Iz=I-Il
+
+printf("output voltage = %.3f V \n",Vo)
+printf("voltage drop across series resistance = %.3f V \n",V_R)
+printf("current through Zener diode = %.3f mA \n",Iz)