Homework on Functions - Questions

Functions do mathematical calculations on input value and give us output value.

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

Hi, I have no clue about math…can somebody assist?

3 Likes
  1. A function takes an input, performs a computation on the given input and outputs the result.

  2. a) 4
    b) 17
    c) 0

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

1 Like
  1. A function describes an action to be performed with an input. Generally this is written in a mathematical formula.
  2.  a. 2 = even, so formula f(x) = x^2  applies. F(2) = 2^2 = 4 
     b. 7 = uneven, formula f(x) = x+10 applies. F(7) = 7+10 = 17 
     c. 0 = even, so formula f(x) = x^2  applies. F(0) = 0^2 = 0
    
  3. F(x)=(x/4)-5
1 Like
  1. A function is a computation that takes an input and generates and output.

  2. a) 4
    b) 17
    c) 0

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

1 Like
  1. A function takes inputs and modifies them by a certain variable/s to create outputs.

  2. a) 4
    b) 17
    c) 0

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

1 Like
  1. Function is a variable of inputs and resulting in a form of output
  2. f (x)= x/4 - 5
1 Like

Do I get “time out” if I skip these questions :sweat_smile: :rofl:

2 Likes
  1. A function takes one or more inputs, performs an operation on them and returns a resulting output.

  2. 4, 17, 0

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

1 Like
  1. A function is a piece of code which takes an input and produces an output. This function can be expressed as (x) and reused over and over again without having to rewrite the entire piece of code.

a) 4
b) 17
c) 10

f = (x/4) - 5

1 Like
  1. Describe what a function does in your own words
    a function apply a mathematical rule to any given input producing an output result.

  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) f(2) = {4}
  • b) f(7) f(7) = {17}
  • c) f(0) 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

zero is technically even, so zero times zero equals zero

1 Like
  1. Function is a mathematical equation that has an input that produces 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 mathematical computation where an input creates an output with predefined characteristics (eg f[x] = x + 1)

  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) = 2^2 output = 4
  • b) f(7) = 7+10 output = 17
  • c) f(0) = 0^2 output = 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.The mathematical function is a relationship that is established between two sets, through the quality of each element of the first set is assigned a single element of the second set or none.
2.
a) 4
b) 17
c) 0
3. f(x)= (x/4)-5

  1. A function is a taking the value of an input and programming it to deliver an output

a) 4
b) 17
c)0

  1. f(x) = (x/4)-5
1 Like
  1. Describe what a function is in your own words:
    A function is instructions that you can input in order to get a specific output. It’s a computation that follows mathematical rules. You input a certain value to get a certain output value (Oh God I struggle with defining this lol)

  2. Calculate the output of the following function
    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

I see some people have put the parenthesis and some have not. If someone can explain to me which is correct I would be ever so grateful :slight_smile: Thank you!

1 Like

it’s not a big deal, because multiplication and divisions have priority to adding or subtracting.

order of operations

1 Like

Are you on discord? otherwise we can do a voice chat for explaining this

1 Like

Ahh yes of course! I had completely forgotten about that. It’s been a while lol. Thanks for the reminder:)