Homework on Functions - Questions

Thank you Fabrice. I am a Respiratory Therapist there is some math but not that much. Math is crazy . 2 + 2 = 4 and 2 x 2 =4 :thinking:

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
  • a set of variables to instruct the algorithm to carry out which results in a new number or sha256 xo
  1. Calculate the output of the following function
  • a) 4
  • b) 17
  • c) 0
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)
  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

A function is a rule in which you give it something (an input), it does some calculation, and then it gives you another thing in return (an output)

a) f(2) = 2^2 = 4
f(2) = 4

b) f(7) = 7 + 10 = 17
f(7) = 17

c) f(0) = 0^2 = 0
f(0) = 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) = {

x/4 - 5

}

1 Like
  1. A function is a computation where you have an input and an output.

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

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

  1. A function is a mathematical computation that takes a number (or input) and calculates a number from it (an output).

  2. a) 4, b) 17, c) 0 (is zero even?)

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

1 Like

You can imagine a function as a small machine. You put something into the machine (some raw materials) and you get something out of the machine. The machine needs at least one input material to work and will at least produce one output material. So for a given input you always get the same output. In the real worlds even a simple machine has lots of inputs, since everything that changes the behaviour of this machine is treated as an input, meaning that materials you put in, all settings you do to the machine and even all environmental conditions are inputs.

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

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

1 Like
  1. A function (f) is an operation such as addition, by some magnitude, which is performed on some variable (x) and notated as follows f(x). If f is an addition of 5, then f(x) = x+5. Any data can then be implemented as x .
    2a) f(2) = 4
    b) f(7)= 17
    c) f(0) + 0
  2. f(x)= (x/4)-5
1 Like
  1. It gets an input, calculate and generate an output
    2a) 4
    2b) 17
    2c) 0
  2. f(x) = (x/4) - 5
1 Like
  1. A function is used as a computation that starts with an input. The resulting number after you solve the computation is called the output.

  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
  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

2. Calculate the output of the following function

Hello sir, did you forgot to solve the part of the question?

  • a) f(2) = ??? = ??
  • b) f(7) = ??? = ??
  • c) f(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.

maybe you forgot to type your answers to this question?

If you have any doubt, please let us know so we can help you! :slight_smile:

Carlos Z.

1 Like
  1. A function utilizes math to turn an input into an output
  2. 4, 17, 0
  3. f(x) = x/4 -5
1 Like
  1. A function is a computation, you give an input and get an output based on the syntax used

  2. Calculate the output of the following function
    a) 4
    b) 17
    c) 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

β€” My Anwers β€”

  1. A function is a series of computations that are executed on a given input to return an output.

  2. a) 4
    b) 17
    c) 0

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

1 Like
  1. A function is a computation wherein you assign an input to receive an output.

  • A. 4
  • B. 17
  • C. 0
  1. f(x) = (x/4) - 5
1 Like
  1. Function is basically a mathematical calculation which gets a specific input and transforms it according to a specific logic as an output

  2. Output:

  • a) 4
  • b) 17
  • c) 0
  1. f(x) = { (x/4) - 5 }
1 Like
  1. Describe what a function does in your own words
    A function is an equation that takes an input and give out an output.
  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) f(2^2)= 4
  • b) f(7) f(7+10)= 17
  • c) f(0) f(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.
    F(x/4)-5
1 Like
  1. Describe what a function does in your own words
  • A function is a computation that has a input that correlates to an output
  1. 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)=/4-5

The parity of zero is even, so 0^2=0

1 Like

You forgot an x.
You can’t start with a division without a numerator.

f(x) = x/4 - 5

1 Like