Homework on Functions - Questions

  1. a fuction takes input, performs a defined calculation then gives it’s output
  2. a 4 b 17 c 0
  3. f(x) = {
    x/4 - 5
    }
1 Like
  1. Gets output from given input.

  2. a) 4
    b) 17
    c) 0

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

1 Like

1.function take an input calculate it regarding to specification and gives an output.
Function takes X and makes it Y.

  1. it is an input to get a desired output.

  2. 4
    17
    0

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

1 Like
  1. Relation between a set of inputs and a set of permissible outputs.
  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 describes how one variable is affected by another variable having an outcome.

  2. 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.  f(x) = (x/4)-5
1 Like
  1. a computation that takes an input and gives an output.

  2. f(2) = 4
    f(7) = 17
    f(0) = 0

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

1 Like
  1. A function is a mathematical equation that takes a syntax, or an input, and gives us an output.

  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. A function takes an input and changes it in a specified way to create the correct output

  2. a) 4
    b) 17
    c) 0

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

1 Like
  1. A function takes an input, performs some calculation to it and provides an output.
  2. a) f(2) = 4
    b) f(7) = 17
    c) f(0) = 0
  3. f(x) = { x / 4 - 5 }
1 Like
  1. Describe what a function does in your own words
  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)
  • b) f(7)
  • c) f(0)

A little help here please. I’m getting

a) f(4)
b) f(9) <— if ^2 is a caret and is essentially and, why is everyone else getting 17?
c) f(0)

I am not sure, how you get 9.

f(x) = {

x^2 if x is even

x+10 if x is odd

}

Is a branching function. Simply meaning you decide the path the function will take based on the function input. So in case where x = 7, it means that x is an odd number and therefore you use the second path (x + 10) = 7+ 10 = 17.

Ahh, I see what I did wrong. Thanks :slight_smile:

1 Like
  1. You give something to a function which is input and and then you get output.

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

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

You forgot to divide the input X by four, f(x) = (x/4) - 5

  1. Mathematical command that takes an input and produces an output based on a programmed formula.
    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 math formula that takes an input and then an output is calculated.

2. Calculate the output of the following function

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. A function is a mathematical operation that takes an input (usually a number); performs a math computation using that same input to solve the mathematical operation which then results in an output (the answer or solution) to the mathematical operation.

  2. This particular mathematical operation has certain conditions that need to be met in order to arrive at the correct solution. The conditions are: First, if the value of x is an even number, then you need to take the value of x and square it. Second, if the value of x is an odd number, then you must add 10 to the value of x (which must be an odd number).

a) Since the value of x=2 (which is an even number); then you need to “square” that input; 2^2=4
b) Since the value of x=7 (which is an odd number); then you need to add 10 to the input; 7 + 10=17
c) Since the value of x=0 (which is an even number in math); then you need to “square” that input;
0^0=0

  1. f(x)=(x/4)-5
1 Like
  1. A function provides an output for every input specified by preforming a set of operations on the input

a 4
b 17
c 0

  1. f(x) = {x/4 - 5}
1 Like
  1. A function is a placeholder that relates an input to an output.

a) x = 4
b) x = 17
c) x = 0

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