Homework on Functions - Questions

  1. Describe what a function does in your own words

A function transform (or not) an input value with fixed rules written into. Rules never changes 'til the code of function is not modified. It return always something.

  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

Q1. Describe what a function does in your own words
A. A function is a mathematical computation whereby a given input produces a calculable output.

Q2. 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)
  • b) f(7)
  • c) f(0)
    A. a) 4 b) 17 c) 1

Q3. Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
A. f(x) = x/4 - 5

0 is even number So f(0) = 0^2 = 0.

1 Like
  1. A function is a mathematical expression that explains the relationship between your input and the kind of output you expect/observe. The input is represented by the variable x and the output by y or f(x).

  2. If f(x) = x^2 if x is even
    f(x) = x+10 if x is odd
    Then
    a. f(2) = 4
    b. f(7) = 17
    c. f(0) = 0

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

1 Like
  1. Describe what a function does in your own words
    A function is an equation with an input creating 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) 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. Function is used for computation which take input computes and gets 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
    function take a input and does something to and returns the value
  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)
    10
  • c) f(0)
    errors
  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)}

0 is even number So f(0) = 0^2 = 0.

  1. Describe what a function does in your own words - It takes an input and provides 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) = 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 mathematical equation that solves for (x)

A. 4
B.17
C.0

  1. f(x)= x/4 -5
1 Like
  1. A function is a set of rules that will give you an output based on what the equation is given.

A. f(2) = 4 this function dictates that we will be taking (x) which is 2 in this case and it is multiplied by is self because it is even.
B. f(7) = 17 We are given an odd number so the function will add 10
C. f(0) = 0 In the case of zero we do not have an odd or even number, so the output is 0.
3. f(x)=(x/4)-5

1 Like

A function is a tool used to get a computational result

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

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

1 Like

Zero is an even number.=>f(0) = 0^2 = 0.

  • Homework on Functions - Questions
    • Describe what a function does in your own words?
      • A function is a calculation of inputs in order to receive an output based on a variable (or many)
    • 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
    • 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. Function is a computation; if you have an input a function will calculate it to get a output.
  2. f(2)= {4} ; x is even
    f(7)= {17}; x is odd
    f(0)= {0}
  3. f(x)= (x/4)-5
1 Like
  1. A function is a mathematical computation which turns an input into an output based on a given equation.

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

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

1 Like

Thank you for pointing this out to me!

1 Like
  1. A function is a computation that requires an input to provide an output.

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

1 Like
  1. A function helps compute input in order to give the correct output.
  2. a) 4
    b) 17
    c) 0
    3.f(x)= x/4 - 5
1 Like
  1. A function is a (conditional) computation. It gives an output depending on an input.

a) 4
b) 17
c) 0

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