Homework on Functions - Questions

Describe what a function does in your own words | A function is a mathematical equation that takes an input and produces an output.

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
Describe what a function does in your own words -

A function is an equation where x is a variable.

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. A function returns an output for a given input.

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

1 Like

1)A function is a computation which takes an input and callculates it into an output.
It consists of a function-name and an input(functionname+input=syntax) which generates the
output.

  1. a) = f(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: A function performs a calculation
  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 a predefined series of instructions. It takes an input as an argument and computes an output by executing these instructions when called.

a) 4
b) 17
c) 0

  1. f(x) = x / 4 - 5
1 Like
  1. A function connects one set (input/domain) to another set (output/range)

  • a) f(2) = 4

  • b) f(7) = 17

  • c) f(0) = 0

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

1.computation of input 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 mathematics formula which takes input, uses parameters described, 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) = 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 is a computation where you enter an input for a variable(x) and get a specified output.
  1. Calculate the output of the following function
    a.4
    b.17
    c.0
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)
  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/4) -5
1 Like

1. Describe what a function does in your own words
A function takes in one or more inputs, performs some specified operation on them, and gives back a single 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

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

Hey thank you Alko89 :pray:

1.A function is a computation that takes an input value and calculates an 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 based on varying inputs that produces a different outcome depending of the value of that input.

  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. Describe what a function does in your own words
    A function is a set of instructions which you can activate by giving it some variables and creates 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

Functions, Hash Functions and Cryptography

Describe what a function does in your own words:

A function performs a computation based on an input number and returns an output number. It has the form f(x) and computes the output based on the expression or algorithm e.g. x+1; x^2; x+10.

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?

  1. f(2) = 2^2 –>4
  2. f(7) = 7+10 ->17
  3. f(0) = 0^2 ->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

}

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

1 Like
  • A function is something that takes an input and gives you an output.
  • a) 4
  • 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 computation based on an input and that produces 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

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

Functions, Hash Functions, Cryptography

1. Describe what a function does in your own words
Function related an input to an output. It assigns one output to each input.

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)
= x^2 = 2^2 = 4

b) f(7)
= x+10 = 7+10 =17

c) f(0)
= x = 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. Describe what a function does in your own words
    Compute math

  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