Here is a math function that Kate wants to use in her program:
The template for this function is defined below. Let's decompose it!
Your task is to create three additional methods f1, f2, and f3 for each case and complete the method f. Each method should accept x as an argument with double type.