diff options
Diffstat (limited to '608/CH14/EX14.07/14_07.sce')
-rwxr-xr-x | 608/CH14/EX14.07/14_07.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/608/CH14/EX14.07/14_07.sce b/608/CH14/EX14.07/14_07.sce new file mode 100755 index 000000000..aaefcbe7d --- /dev/null +++ b/608/CH14/EX14.07/14_07.sce @@ -0,0 +1,13 @@ +//Problem 14.07: Determine the peak and mean values for a 240 V mains supply.
+
+//initializing the variables:
+Vrms = 240; // in Volts
+
+//calculation:
+//for a sine wave
+Vmax = Vrms*(2^0.5)
+Vmean = 0.637*Vmax
+
+printf("\n\n Result \n\n")
+printf("\n peak value = %.1f V",Vmax)
+printf("\n mean value = %.1f V",Vmean)
\ No newline at end of file |