blob: aaefcbe7d7a17a587b175ca92bf46cdfd233d032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
|