Find the average power absorbed by the resistor for each voltage function.
Notice the use of the double backslash to escape the comma in functions 3 and 4. This is necessary because the mod and max functions require a comma as part of the function definition. Without the \\ the comma would be interpreted as the beginning of a new parameter in the parameter list.