diff options
Diffstat (limited to '3754/CH20/EX20.22/20_22.sce')
-rw-r--r-- | 3754/CH20/EX20.22/20_22.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH20/EX20.22/20_22.sce b/3754/CH20/EX20.22/20_22.sce new file mode 100644 index 000000000..6af248c23 --- /dev/null +++ b/3754/CH20/EX20.22/20_22.sce @@ -0,0 +1,15 @@ +clear//
+
+//Variables
+
+R1 = 240.0 //Resistance1 (in ohm)
+R2 = 2.4 * 10**3 //Resistance2 (in ohm)
+VREF = 1.25 //Reference voltage (in volts)
+
+//Calculation
+
+Vo = VREF * (R2/R1 + 1) //Regulated dc output voltage (in volts)
+
+//Result
+
+printf("\n Regulated dc output voltage is %0.3f V.",Vo)
|