summaryrefslogtreecommitdiff
path: root/226/CH18/EX18.10/example10_sce.sce
diff options
context:
space:
mode:
Diffstat (limited to '226/CH18/EX18.10/example10_sce.sce')
-rwxr-xr-x226/CH18/EX18.10/example10_sce.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/226/CH18/EX18.10/example10_sce.sce b/226/CH18/EX18.10/example10_sce.sce
new file mode 100755
index 000000000..cb81f9b26
--- /dev/null
+++ b/226/CH18/EX18.10/example10_sce.sce
@@ -0,0 +1,10 @@
+//chapter 18
+//example 18.10
+//page 785
+printf("\n")
+printf("given")
+I1=1*10^-3;Vref=1.25;Vo=6;Vs=15;Il=200*10^-3;
+R1=Vref/I1
+R2=(Vo-Vref)/I1
+Pd=(Vs-Vo)*Il;
+printf("regulated power dissipation is %3.2fW\n",Pd) \ No newline at end of file