Homework on Functions - Questions

A function is an equation which allows mathematical variables to be computed. It can be altered by changing the equations parameters resulting in different outputs.

a … 4
b … 17
c … 0

f(X) = x/4-5

1 Like

Thanks! @Alko89 appreciate the correction.

1 A function is a mathematical process allowing an input to be transformed to an output based on whatever function is used.
2a.4 b.17 c.0
3 F(x) = (x/4)-5

1 Like

Aahhhh I didn’t think of that. 0 being an even number is a pretty new concept to me, I’ll remember that :slight_smile:

Homework - Functions
Functions, Hash Functions, Cryptography

Describe what a function does in your own words

A function is a computation. The computation gives you an input and with a calculation it will give you the 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

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

you must subtract the division by 5 meaning you switched the formula :slight_smile:

Thanks for your reply.

To my knowledge and according to the mathematics parenthese rule order, there is no difference between the following expressions;

  • (x/4)-5
  • 5-(x/4)

There is a difference because subtraction is not commutative. The right way to write it your way would be -5 + (x / 4) :slight_smile:

Aah, yes ofc… I don’t know what I was thinking. Properly time for bed…

Thanks for replying and correcting my stupidity… Lol :smile:

1.	Describe what a function does in your own words

it is a math problem. One puts something into a math problem (input) and gets a solution on the other side (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) 4
• b) 17
• c) 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

What will be the output for the following inputs?

  • a) 4
  • b) 17
  • c) 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

Describe what a function does in your own words

    A function is Somethings that will take an input, and based on the assigned input, it will produce 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)= 2(2)=4

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

c) f(0)= 0. It is neither (-) or (+)

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 formula that takes an input and calculates an output.
  2. a. 4 b. 17 c. 0
  3. f(x)=x/4-5
1 Like
  1. A function allows for the interchangeability of input into a set equation which may or may not result in varying solutions/outputs.
  2. a: 4
    b: 17
    c: 0
  3. f(x) = {(x/4) - 5}
1 Like
  1. A function is a computation derived from an input and an output.

a: f(2) = 4
b: f(7) = 17
c: f(0) = 0

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

A) f(2)= 22=4
B) f(7)=7+10=17
C) f(0)=0
2=0 f(0)=0+10=10

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

1 Like

Only one is correct :wink:

  1. Describe what a function does in your own words
    It takes an input and modify it(using it) to provide 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)
    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
  • Function executes the specific instruction onto the input to produce an output.
  1. 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. Describe what a function does in your own words
    A function is the result of an input that parameters are applied to to get 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