Homework on Functions - Questions

  1. Describe what a function does in your own words

A function is a computation that takes an input, and then performs an action to create 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)

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

A function is a computation that calculates an output based upon whatever inputs are defined in it’s syntax.

A) f(2) = 4

B) f(7) = 17

C) f(0) = 0

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

1 Like
  1. A function determines the value of a variable with parameters

a)4
b)17
c)0
3.f(x)=(x/4)-5

1 Like
  1. in a function you’re given an input an output. your input is what’s inside the parenthesis and the output is what whatever number you plug into the input is equal to.

a= 4
b=17
c=0
3. f(x) =(x/4)-5

1 Like

Homework on Functions - Questions

  1. A function takes an input or multiple inputs and it gives a results of operations as outputs.

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. f(x) =(x / 4) - 5
1 Like

A function takes an input and performs specified mathematical calculations to arrive at an output.

a) 4
b) 17
c) 0

f(x) = x/4 -5

1 Like

1 A function is computation, where an input is calculated to make an output as a result.

2 a 4
b 17
c 0

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

1 Like
  1. a function is a mathematical construction which assigns an output to every input

  2. a) 4
    b) 17
    c)

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

1 Like
  1. A function takes input and computes it to the specifications of the syntax to provide an output.
  2. a = 4, b= 17, c = 0
  3. f(x) = (x/4)-5
1 Like

1- a function is a mathematical equation in which X is a variable

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 equation that dictates how a particular set of mathematical rules are processed in computer programming.

2. Calculate the output of the following function

  • a) f(2)

f(x) = {4}
since x^2 if x is even

  • b) f(7)

f(x) = {17}
since x+10 if x is odd

  • c) f(0)

f(x) = {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

function is mathematical equation where x is variable

  1. 4
  2. 17
  3. 0

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

1 Like

1. Describe what a function does in your own words: A function takes one or several inputs and transforms them in whichever way the function is built for.

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

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 computes an output when it receive an input. It is denoted by f for example: f(x) = y where x = input and y = output
  2. 4, 17, 0
  3. F(x) = (x/4) - 5
1 Like
  1. A function is something that takes something as input and outputs a result based on it.

  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
  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

with inputs from Question #2: a) -4.5 b) -3.25 c) -5

1 Like
  1. Function is a mathematical forumula that takes an input and runs it through a set equation to provide an output.

A) = 4
B) = 17
C) = 0

  1. f(x) = x/4 - 5
1 Like
  1. a function is a mathematical formula which works with different inputs.

4
7
0

  1. f (x) = (x/4) - 5
1 Like
  1. A mathematical calculation executed on input numbers that gives an output number.

  2. a.4
    b.17
    c.0

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

1 Like

1 - A function is a calculation that generates an output when given an input.

2 - a: 4 b: 17 c: 0.

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

1 Like