Homework on Functions - Questions

  1. Describe what a function does in your own words

A function is a computation that when we insert an input a certain output is given.

  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)= 2^2= 4
  • b) f(7)= 7+10=17
  • c) f(0)= 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)= (x/4) - 5

1 Like

A function is an instruction to perform a action.
a=4
b=17
c=0
3. f(x)=(x/4)-5

1 Like
  1. A function is an algorithm that takes an input and outputs a value.

a) (2)^2 4
b) (7)+10 17
c) (0)^2 0

f(x) = {

(x/4)-5 if x is x->R?

}

1 Like
  1. A function is a computation where a syntax (f) receives an input (x) and then computes a new output that depends on the input.

  2. If input is even [x(2)]: f(2) = 4
    If input is odd x+10: f(7) = 17
    If input is even [x(2)]: f(0) = 0

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

1 Like
  1. A function is a mathematical construct that takes an x value as an input and creates a y value as an output in a 1:1 correspondent.

  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
A function takes an input, does some calculations, and then returns 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) = 2^2 = 4
b) f(7) = 7+10 = 17
c) f(0) = 0^2 = 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. Describe what a function does in your own words:
    A function computes an output when you provide an input.
  • a) 4
  • b) 17
  • c) 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

A function is a computation which can have variable syntax. An input is computed according to the set syntax and gives an output.

4

17

0

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

1 Like
  1. A function is a formula to create inputs/outputs

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

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

1 Like
  1. A function performs the same action to each unique variable entered.
  2. a) 4 b) 17 c) 0
  3. f(x) = (x/4)-5
1 Like
  1. A function is a β€œrule” or set of actions that are applied when one calls it. With or without params.

a) 4
b)17
c)0

f(x) {
res = x/4-5-;
return res;
}

1 Like
  1. A function is a 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

A function applies an operation to an input and this results in 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) = (x/4) - 5

1 Like
  1. an input to compute for an output
  2. 4,17,0
  3. f(x)= (x/4)-5
1 Like
  1. A function is an expression to compute some output given an input.

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

  1. f(x) = (x/4) - 5
1 Like
  1. Function computes any set of inputs to produce specific outputs

    • a. 4 b.17. C. 0

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

1 Like
  1. A function is a given set of rules to the variable entered.

  2. 4
    17
    0

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

1 Like
  1. Describe what a function does in your own words

A function is a computation where you have an input that gives you the output.

  1. Calculate the output of the following function answers:

a. 4
b. 17
c. 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 accepts an input and gives 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) = 2^2 = 4
  • b) f(7) = 7+10 = 17
  • c) f(0) = 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) = (x/4) - 5

1 Like
  1. A function is a transformation from one value to another according to a mathematical formula.

a) 4
b) 17
c) 0

  1. f(x) = (x / 4) - 5
1 Like