Homework on Functions - Questions

  1. Describe what a function does in your own words
    A function is the computational relationship between an input and 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
  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 essentially the input and output from a computational equation.
  2. a) 4
    b) 17
    c) 0
  3. f (x) = {x/4} -5
1 Like
  1. A function performs one or more mathematical operations on a given input, and produces the results as output.
    2a. 4
    2b. 17
    2c. 0
  2. f(x) = x/4-5
1 Like
  1. Describe what a function does in your own words
  • A function is a mathematical formula that takes an input an return 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

2 Likes

A function Takes an input “x” and gives you an output

f ( x )  =  {

x^2  if  x  is  even

x+10  if  x  is  odd

f(2) = 4

f(7) = 17

f(0) = 0

1 Like
  1. A function is an equation which takes an input and calculates an output.

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

  1. f(x) = (x/4) - 5
2 Likes
  1. A function transforms in a consistent manner, individual input into output.

  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 is a computation. The mathematical formula as refereed to as syntax.
A function uses syntax to represent a calculation, an input and and output. You give something (x) a function, a calculation takes place and you get 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

}

2 Likes
  1. Basically a function is a group of operations (like, for example a calculation).It has an input and and a output and a specific syntax

  2. 4 / 17 /0

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

2 Likes

1.A function is relation between variables where one variable dependent on other variable
2.a)4 b)17 c)0
3.f(x)=x/4-5

1 Like
  1. A function is a relationship established through the elements assigned. It is a computation that gives you something like a number.

  2. a) 4 b)17 c) 0

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

1 Like

Questions

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

    Function is taking the input and produce the 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)

    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. Describe what a function does in your own words
A function is a process in which the input is changed to an output using some kind of mathematical operation. It basically defines the relationship between input variable and output variable.
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 is something that computes data

  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

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
2 Likes
  1. Input to output

  2. A. 4 B. 17 C.0

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

2 Likes

1 its a calculation, looks a lot like variables from coding

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

3 f(x)=x/4-5

2 Likes
  1. A function is a thing that takes some arguments, does something with them by executing a step-by-step algorithm, and returns the computed result as an output. Of course, this is a definition of a mathematical function, or a pure function as we say in programming, and a function that is not pure is a little bit complex - it can have side effects, that is, the execution of a function can modify some external state which will then result in changing the behaviour or output of this function or even other functions in the system.
  2. a) 4 b) 17 c) 0
  3. f(x) = x/4 - 5
1 Like

1 take the x and replace it with the input.
2 4/17/0
3
f(x) = (x/4)-5

1 Like
  1. A function is a math equation, where X is a variable.

(a) f(x)=×+2
f(2)=4

(b) f(10)=17

Š f(x)=(xá4 ) - 5

1 Like

A function describes a calculation that uses at least one input, a variable and a constant to achieve an output.

a. 4
b. 17
c. 0

(f) x = x/4 - 5

1 Like