Homework on Functions - Questions

1-) Describe what a function does in your own words
= Function takes an input uses the given formula to produce an output.

2-) 1. Calculate the output of the following function
f(x) = {x^2 if x is even , x+10 if x is odd}

Output
a) f(x)2x2 = 4
b-) f(x) = 7+10 = 17
c-) f(x) = 0x0 = 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
f(x)= 20/4 - 5 = 0

1 Like

You should square if X is even which would give you 0 not 1. :slight_smile:

You didn’t calculate the results for the second question. :slight_smile:

1 Like

took an hour to understand the question… but got it finally xD

Homework on Functions - Questions

  1. Describe what a function does in your own words

A function is a formula that will take any variable number as input and do a calculation and provide output according to the input.

  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)= 14
  • 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.
    [/quote]

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

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

A function is a relation from a set of inputs to a set of outputs where each input is related to exactly one output.

  1. Calculate the output of the following function
  • 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 calculation, describing a certain formula, which defines the output depending on the respective input.

  2. a) 4

  3. b) 17

  4. 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 equation that takes an input, makes a calculation on that input and then provides the output

  2. Calculate the output of the following function
    a) f(2) = 4
    b) f(7) = 17
    c) f(0) = 0

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

1 Like

Yes. Zero is an even number. Thanks Maki.

A function is a computation

a) 4
b)17
c)0

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

1 Like
  1. A function produces an output from a set of conditions and an input.
    2.a) 4
    2.b) 17
    2.c) 0
  2. f(x)= (x*1/x)-5
1 Like
  1. A function takes in a set of input(s), calculates according to the rule you made, and spits out the result.

  2. f(2) = 2^2 = 4, f(7) = 7+10 = 17, f(0) = 0^2 = 0

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

1 Like
  1. Describe what a function does in your own words
    A function is a mathematical equation where it takes an input and 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
  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

this is not correct, you must divide x by 4. :slight_smile:

  1. puts an input to get an output

  2. a.) 4

    b.) 17

    c.) 0

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

1 Like
  1. Function is mathematical equation, where you get different values from the fuction with usage of different input value, in which X is variable.

a) 4
b) 17
c) 0

  1. f(x) = (x/4)-5
1 Like
  1. A function involves an input number that is run through a math operations (function) to create an outcome.

  2. f(x)
    f(2) = 2 x 2 = 4
    f(7) = 7 + 10 = 17
    f(0) = 0

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

1 Like
  1. Describe what a function does in your own words. - It is a condition placed on an input in case of which we get a specific 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

A computation that takes an input and based on the variables creates an output

f(x) = 2^2 = 4
f(x) = 7+10 = 17
f(x) = 0^2 = 0

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

1 Like
  1. A function takes a numerical input, runs it through a specific computation and outputs the result.

a) 4
b)17
c) 0

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