Homework on Functions - Questions

1.The first example function inputs any number x represents.
Between the {} parenthesis means the condition that needs to be true in order to complete the mathematical output.

So x^2 means, any number x is will be to the power of 2 if x is an even number eg; 6^2 is 6*6 which makes the output to 36.

So for x + 10 will be any number that represents (x) will be added to 10 if x is an odd number eg; x is 3 equation would be 3 + 10 which makes the output 13.

  1. What will be the output for the following inputs?

for example a) f(2)

f(2) = {

x^2 if x is even

x+10 if x is odd

}

as x = 2 then the condition implements even number so the equation is 2^2 = 4

for example b) f(7)

f(7) = {

x^2 if x is even

x+10 if x is odd

}

as x = 7 then the condition implements odd number so the equation is 7 + 10 = 17

for example c) f(0)

f(0) = {

x^2 if x is even

x+10 if x is odd

}

as x = 0 then the condition implements even number so the equation is 0^2 = 0

  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

The function would be:

f(x) = {

x / 4 - 5

}

1 Like

A function is a mathematical formula that transforms an input into an output.

f(2) = 4
f(7) = 70
f(0) = 0

f(x) = {

(x/4)-5

}

Is this a typo? :wink:

  1. Functions is an equation where (x) is an unknown/variation that can lead to different results.

  2. (a). 4
    (b). 17
    Β©. 0

  3. f(x)=(x/4)-5

1 Like
  1. Describe what a function does in your own words
  • A function is a instruction on what to do with a given input and produces a corresponding output.
  1. Calculate the output of the following function
    a) 4
    b) 17
    c) undefined

  2. f(x) = (x/4) - 5

It is not undefined f(0) = 0πŸ˜‰

1 Like

Functions are computations that go from an input to output.

f(2) = 4
f(7) = 17
f(0) = 0

f(x) = (x/4) - 5

1 Like
  1. Describe what a function does in your own words
    Functions compute equations and provide an output based on given instructions.

  2. Calculate the output of the following function:
    f(x) = { x^2 if x is even, x+10 if x is odd}
    a) f(2) = 4
    b) f(7) = 17
    c) f(0) = 0

  3. 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) = (x/4) - 5

1 Like
  1. Function is a result of a variable based on a known mathematical protocol.

a) 4
b) 17
c) 0
3. f(x) = (x/4) - 5

1 Like

1 - Function transforms one input into a output
2 - a) 4
b) 17
c) 0
3 - f(x) = (x/4)-5

1 Like
  1. X is the input or initial number. A command it place after the equals sign of what x to be calculated.

a) 4
b)17
c)0

  1. f(x)=(x/4)-5
1 Like
  1. A function is a computation that receives an input and then produces an output (or result of the evaluated function at a given input).

  2. (a) f(2) = 4 (b) f(7) = 17 Β© f(0) = 0

  3. f(x) = x/4 - 5

1 Like
  1. Function takes a input and calculates a output
    2.a)=4
    B)=17
    C=0
  2. F(x)=(x/4)-5
1 Like
  1. a function is an expression that defines the relation between variables( eg: x & y), such that for every change in the value of x the result obtained is a unique value of y.

2.a. 4
b. 17
c. 0
3. f(x)= (x/4)-5

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
    Answer:
    A function is simply computation, an input is mathematically written and is offers an output as a result.
  2. Calculate the output of the following function
    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)
β€’ b) f(7)
β€’ c) f(0)

β€’ Answer:

A) f(x ) = x^2
x is 2 being an even number
therefore :
f(x)=x^2
f(2)=2^2
f(2)=4
b) f(x)=x+10
x is 7 being an odd number,
therefore :
f(7)=7+10
f(7)=17

          c)   f(x ) = x^2
                x is 0 being an even number
                therefore:
                f(0)=0^2
                f(0)=0
  1. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.

Answer:

             f(x) = x/4 - 5
1 Like
  1. A function represents a calculation that receives some type of input and spits back out an output.

2a) 4
2b) 17
2c) 0

  1. f(x) = (x / 4) - 5
1 Like
  1. A function is computation in which x is a variable input to give you your output.

2a. 4
2b. 17
2c. 0

  1. f (x) = (x/4)-5
1 Like
  1. A function is a piece of computational math that takes an input and gives an output depending on its parameters.
  2. 4, 17, 0
  3. f(x) = (x/4) - 5
1 Like
  1. A function is used to create an output that is made with an input variable (X) and some other instructions, for example, addition, subtraction, conditionals, exponentiation, etc.

  2. The function uses a conditional that can be translated to the following options: An exponentiation by 2 (^2) when X is even, and an addition of 10 (+10) when X is odd.

a) 4.
b) 17.
c) 0.

  1. F(x) = (x/4)-5
1 Like
  1. Describe what a function does in your own words

    It’s the definition of a calculation.

  2. Calculate the output of the following function

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) -> 4
  • b) f(7) -> 17
  • c) f(0) -> 0
  1. 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) = x/4-5

1 Like