Homework on Functions - Questions

  1. Describe what a function does in your own words - A function is an equation that takes inputs and produces outputs.
  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) = Null
  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
  1. A function is a mathematical calculation witch takes an input, puts it through a calculation process and gives back an output.

  2. a.4
    b.17
    c. 0

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

1 Like

1.- A math calculation that takes a numeric input and process it to give an output according to its internal mathematical logic.

2.-4, 17, 0

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

Summary

This text will be hidden

1 Like
  1. A function is mathematical computation with input and output results based on a value in the formula.
  2. a)4, b) 17, c) 0
  3. f(x) = f(x/4)-5
1 Like

What are the results of the function based on that? :slight_smile:

0 is an even number :wink:

  1. function is action that that creates an output as a result of adding something to input
  2. 4, 17, 0
  3. f(x)=(x/4)-5
1 Like

1 A function makes a comutation during to a set of instructions.

2
a 4
b 17
c 0

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

1 Like
  1. function applies exactly 1 output to an input of a specified type. f(3) where x=3 can only produce specific outcomes

  2. a) 4, 12
    b) 14, 17
    c) 0, 10

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

1 Like

We cannot get a numerical number as result if we don’t assign a value to the variable x. Am I wrong?

  1. A function does the same actions to each unique variable entered.

  2. a) 4
    b) 17
    c)0

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

1 Like

1. Describe what a function does in your own words function is a computation that takes an input and process the output for us.

2. Calculate the output of the following function

  • a) 4 - f(2) = 2^2
  • b) 17 - f(7) = 7+10
  • 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

The numerical values are provided as the function parameter:

  1. Function is another word for computation

2
A) = 4
B) = 17
C) = 0

3
f(x)= x/4-5

1 Like
  1. Describe what a function does in your own words
  2. Calculate the output of the following function

Answer: 1. A function is a rule that defines a relationship where there is an input (range) and output (domain)

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) output 4
  • b) f(7) output 17
  • c) f(0) output 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
  1. Describe what a function does in your own words.A function is a computation, a place holder for a number.

  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):
    2^2=4

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

  • c) f(0)
    0+10= 10

  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

0 is an even numberšŸ˜‰

1 Like

Yes it was a stupid mistake, thanks. I didn’t double check

1 Like
  1. A Function takes an input value and does mathematical calculation to give you an output value.
  2. F(2) = 4, F(7) = 17, F(0) = 0.
  3. f(x) = x/4 - 5
1 Like

1:Function is a computation.
2.a. 2+2= 4
b. 7+10=17
c. 0
3. F(x)=(x/4)-5

1 Like