Homework on Functions - Questions

  1. Describe what a function does in your own words
    Function is form of a math computation where there is an input and it solves to give 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)
b) f(7)
c) f(0)

  • a) f(2) = 2^2 = 4
  • b) f(7) = 7+10 = 17
  • c) f(0) = 0 (if there is no input there is no output)
  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

Hi apologies this was a typo :slight_smile: Answer should be 4

IVAN ON TECH

FUNCTIONS, HASH FUNCTIONS, CRYPTOGRAPHY

2/25/2021

1, Describe what a function does in your own words

Function is a computation that has an output which after calculating it will give an input

2, Calculate the Output of the following function

F (X) = (

X of 2 if X is even

X + 10 if X is odd

)

What will be the output for the following inputs

  • F(2) = 2 x 2 = 4
  • F(7)= 7 + 10 = 17
  • F(0)= 0
  1. Write the definition of a function f that takes an input X divides by four and then subtract 5

F(x) = (X/4)-5

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

    A function is a mathematical formula that can have different predetermined conditions, and where by adding variable Inputs, it produces various results, or Outputs.

  2. Calculate the output of the following function

f(x) = {

x^2 if x is even

x+10 if x is odd

}
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. Function is a mathematic formula in which we give input then he does some computations and gives back an output.

  2. a) f(x) = 2*2 = 4
    b) f(x) = 7+10 = 17
    c) 0

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

1 Like
  1. Function is a set of rules to be applied to a given input. Function results an output based on the input parameters.

a) 4

b)17

c) 0

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

1 - Describe what a function does with its own words

Function is a relation attributed to a variable that determines the other 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 exit for the following entries?

a) f (2) = 2 ^ 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 receives an input x, divides it by four and produces that result subtracted by 5.

f (x) = y = x / 4 - 5, then:

f (2) = y = 2/4 - 5 = - 4.5

2 Likes

Homework on Functions - Questions

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

-A function is a specific relationship where each input has a single 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. A function is a computation that takes an input and executes an output.
  2. a) 4
    b) 17
    c) 0
  3. f(x)=(x/4)-5)
2 Likes
  1. Describe what a function does in your own words
    Function is computation which get input and perform some calculation and provide an output.
  2. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

output is
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 requires an input that will give you an output from a calculation

2: 4
14
0

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

1.Function produce an output according to an input formula
2.a)4
b)17
c)0
3.f(x)=x:4-5

1 Like
  1. A function is a computation that defines a set structure with input and output being variables.

a) 4
b) 17
c) 0

  1. f(x) / 4 - 5
    Just wondering if anyone be kind enough to check my answer? I’m struggling to include the ‘=’ sign…Looks like you all have an ‘=’ but doesn’t f(x) / 4-5 produce the same definition? Or must function have an ‘=’ equal sign to make it a function? Thank you for your time.
1 Like

A function is allows a formula that calculates a variable. In this case the variable is x. Additionally, we have conditions checking the x variable for even or odd.

A.
f(x) = x^2
f(2) = 2^2 = 4

B.
f(x) = x+10
f(7) = 7+10 = 17

C.
f(x) = x^2
f(0) =0^2 = 0

f(x) = (x/4) - 5
Following the order of operations, that function will first divide by 4 before subtracting 5.

1 Like
  1. The function is a mathematical equation in which x is the variable.

a. 4
b. 17
c. 0

  1. f(x)=(x/4)-5
1 Like
  1. A function is a mathematical computation that once given an input, computes it to produce an output.

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

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

The function is a mathematical equation that take X as a variable

  1. a) 4
    b) 17
    c) 0

  2. x/4 - 5

1 Like

Describe what a function does in your own words

A function contains instructions used to create an output from its input.

a) 4

b) 17

c) 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. A function is a computation :abacus: of input :arrow_right: versus output :arrow_right:, whereas the input x is the variable in the calculation of the output

  2. 2, 17, 0 :white_check_mark:

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

1 Like

Function - is a calculation where output changes accordingly by changing the 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