Homework on Functions - Questions

  1. Describe what a function does in your own words

A function is a mathematical computation consisting of an input and an 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)

b) f(7)

c) f(0)

Output a = 4
Output b = 17
Output 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
  1. A function describes a mathematical operation that calculates an output based on an input.

  2. a) 4 b) 17 c) 0

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

1 Like
  1. It calculates something by using variables
  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 mathematical equation in which x is a variable to the equation. Input ->output

  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

1 Like

The parity of zero is even. 0^2=0 (defined)

7 is odd, so 7 + 10 = 17

The parity of zero is even. So 0^2=0

When x is even, you need to do x^2
When x is odd, you need to do x+10

4
17
0

Ok thanks. That was sort of a guess anyway.

1 Like
  1. A function does the same actions to each unique variable entered.
  2. a) 4
    b) 17
    c)0
  3. f(x) = (x/4)-5
1 Like

1: A function defines an input and a output involing more variables
2a: 4
2B: 17
2C: 0
3: f(x) = (x/4)-5

1 Like

Thanks… I think I must have calculated 7 x 10 instead of 7 + 10.

whoops :slight_smile:

1 Like

In function u take input and gets output through computing
a/4 b/17 c/0
f(x)=(x/4)-5

1 Like

A function in mathematical terms is a computation for describing an input/output relationship.

a) 4
b) 17
c) 0

  1. f(x) = (x/4) - 5
1 Like
  1. A function is a computation with specific parameters. Input and output.

  2. a) 4 b) 17 c) 0

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

1 Like

A function allows for computations based on defined input and output parameters.

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 relation from a set of inputs that give outputs with one specific input.

  2. A) 4
    B) 17
    C) 0

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

1 Like
  1. a function takes a particular input and produces a certain output based on the equation of the function

a) f(2) = x2^2
=> output = 2
b) f(7) = 7+10
=> output = 17
c) f(0) = 0^2
=> output = 0

  1. F(x) = (x/4) - 5
  1. A function takes a piece of data, applies and set of instructions to it and provides a separate output.

a. 4
b. 17
c. 0

1 Like
Describe what a function does in your own words

A function is a series of events that produces a reliable outcome.

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) = error

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