Homework on Functions - Questions

Homework on Functions - Questions

  1. Describe what a function does in your own words

*a mathematical protocol

  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) = even x2 = 4
  • b) f(7)= odd +10 =17
  • c) f(0)= no value = 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 takes an input and gives you an out put.
  2. a)=4
    b)=17
    c)=0

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

1 Like

A function is a mathematical equation that takes input, does something with is and creates the output.

a. 2
b. 17
c. 0

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

1 Like
  1. Describe what a function does in your own words
    A function is a set of procedural formulaic instructions whose results are activated when given a set of variables.

  2. Calculate the output of the following function
    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. Describe what a function does in your own words
    A function performs a mathematical equation with an input provided.

  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
  1. A function is a machine or a rule on how to process a variable called input to obtain and output.
  2. a) f(2) = 2^2 = 4
    b) f(7) = 7+10=17
    c) f(0) = 0
  3. f(x) = { (x/4) - 5
    }
1 Like
  1. Describe what a function does in your own words
    Ans : In function we can provide mathematical operation to perform in desired way

  2. Calculate the output of the following function
    Ans :

  • 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.
    Ans : f(x) = (x / 4) - 5
1 Like
  1. A function is a calculation or computation that takes a certain variable and outputs a given variable depending on inputed data.

  2. 4

  3. 17

  4. 0

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

1 Like
  1. A function is an equation that takes an input, does some calculation and gives an output in response.

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

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

1 Like
  1. A function makes an output from the input.

A) 4
B) 17
B) 0

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

1.) A function can solve the same equation with multiple different variables.

2.) a. 4 - b. 17 - c. 2

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

Is this typo error? f(0) = 0^2 = 0😉

1 Like

1- function will execute some kind of mathematical equation to the input to produce an output.
2- f(2) = 4
f(7) = 17
f(0) = 0

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

1 Like

1 a function just describes an input and its output, a calculation

2
a x = 4
b x = 17
c x = 0 is not defined in the function above

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

1 Like
  1. A function takes the input values and performs a defined mathematical task on them to produce an output value. It performs an action with these parameters (calculation / string manipulation / validation checks /…) and returns a result.

a) 4
b) 17
c) 0

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

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

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

1.) A function predefines how to arrive at an output from a variable input.
2.a) 4
2.b) 17
2.c) 0^2, which would basically be “error” :slight_smile:
But most say 0^2 is zero. Possible. I’m not a mathematician.
3.)
f(x) = {
(x/4)-5
}

1 Like
  1. Function is a mathematic computation whereby you give input (in number) and u get an output (in number).

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. f(x) = x/4-5
1 Like

Zero is an even number.