Hello, I am rewriting my answer because obviously there was an error.
Describe what a function does in your own words
Calculate the output of the following function
A function is used to calculate a result where the variable f (x) associates x with a number.
f (x) = {
x ^ 2 if x is even
x + 10 if x is odd
}
What will be the output for the following inputs?
a) f (2) = f (x) = 2 ^ 2 = 4
b) f (7) = f (x) = 7 + 10 = 17
c) f (0) + f (x) = 0
Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
F (x) = f (x / 4) - 5