Say there is a math function that you want to use in your program:
The template for this function is defined below. Let's decompose it!
Your task is to create three additional functions f1 -> if x ≤ 0 , f2 -> if 0 < x < 1, and f3 -> if x >= 1 for each case and complete the function f. Each function should accept x as an argument of the Double type and return a Double value.
Don't create the main() function and don't print anything, just complete the functions.
Examples:
f(0.5) returns 4.0
f(-4) returns 17.0