summaryrefslogtreecommitdiff
path: root/2459/CH20/EX20.7/Ex20_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2459/CH20/EX20.7/Ex20_7.sce')
-rw-r--r--2459/CH20/EX20.7/Ex20_7.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2459/CH20/EX20.7/Ex20_7.sce b/2459/CH20/EX20.7/Ex20_7.sce
new file mode 100644
index 000000000..e3caf439c
--- /dev/null
+++ b/2459/CH20/EX20.7/Ex20_7.sce
@@ -0,0 +1,13 @@
+//chapter20
+//example20.7
+//page442
+
+Vz=10 // V
+Vbe=0.5 // V
+Rl=1000 // ohm
+
+Vout=Vz-Vbe
+Il=Vout/Rl
+
+printf("load voltage = %.3f V \n",Vout)
+printf("load current = %.3f mA \n",Il*1000)