Homework on Functions - Questions

Functions - Questions

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

A function takes in variables and does some sort of computation to them to produce 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

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

Describe what a function does in your own words
A function adds itself to an input and determines what the output is.

A - 4
B - 17
C - 0

f(x) = x / 4 - 5

1 Like
  1. A function is a computation that takes an input and puts it through a specific calculation in order to achieve a specific output.
  2. a. f(2) = 2^2 = 4; output = 4
    b. f(7) = 7 + 10 = 17; output = 17
    c. f(0) = 0^2 = 0; output = 0
  3. f(x) = (x/4)-5
1 Like
  1. A function takes a number as input, does one or more operations to that number and returns the result (output).

a) f(2) -> 2 is even -> 2^2 = 4

b) f(7) -> 7 is odd -> 7+10 = 17

c) f(0) -> 0 is even -> 0^0 = 0

f(x) = {
x/4 - 5
}
1 Like

A function takes in some data. Puts the data through a process and returns the result of the processed data.

f(2) = 22 = 4;
f(7) = 7+ 10 = 17;
f(0) = 0
2 = 0;

f(x) =
{
return x/4 - 5;
}

1 Like

A function does a calculation to the number you input, and gives you an output with a new number.

a = 4

b = 17
c = 0

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

  1. A function executes an equation to any input it recieves.
  2. f(2)=4
    f(7)=17
    f(0)=0
  3. f(x)=(x/4)-5
1 Like
  1. Describe what a function does in your own words
    A mapping from input data to output data.

  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

Functions are types of calculations you imput to get an output
A. 4
B.17
C. 0
f (X) = (x/4) - 5

1 Like
  1. It defines a rule of how to perform an equation.
    2a) 4
    2b)17
    2c) 0
  2. f(x)=(x/4)-5
1 Like
  • A description of rules to be applied to a given input.
  • a) 4
    b) 17
    c) 0
  • f(x) = x / 4 - 5
  1. Describe what a function does in your own words

A function is a mathematical computation that derives a result from a formula, where x represents the input number.

  1. Calculate the output of the following function

f(x) = {

x^2 if x is even

x+10 if x is odd

}

EXAMPLE 1 f(x)=x^2 if x is even: f(2)=4, f(4)=16

EXAMPLE 2 f(x)=x+10 if x is odd: f(3)=13, f(5)=15

1 Like
  1. A function is a computation of mathematical actions that gives input’s and output’s

A) f(2)=2x2=4

B) f(7) = 7+10 = 17

C) f(0) = 0

  1. f(x)= x/4-5
1 Like
  1. A function takes a number as an input and dose a callculation and then shows you it as an output.

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

1 Like
  1. A function is a computation that takes an input and calculates it into an output using the chosen formula.
1 Like
  1. A function delivers you an output based on your input and the composition/properties of the function itself.

2a. 4
2b. 17
2c. 0 or undefined

  1. f(x) = (x/4) - 5
1 Like
  1. Describe what a function does in your own words.
    A fuction wil give you an output from a input based on mathe.matical formula.

  2. Calculate the output of the following function
    a. 4
    b. 17
    c. 10

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

1 Like

Question 1

Describe what a function does in your own words

  • Function without inputs can execute a series of operations in sequence or perhaps call other functions and retrieve values from those functions.
  • Functions with inputs can do operations on the inputs and return a value based on operations performed on that value.

Question 2

1. Calculate the output of the following function

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

Question 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) {
d = x/4;
return d-5
}

1 Like
  1. A function is a relationship between sets, which are a well defined collection of distinct abstract objects, that associates to every element of a first set exactly one element of the second set.

A) 4
B) 17
C) 0

  1. (X/4)-5
1 Like
  1. A function is a computation that takes an input ang gives an output.

  2. a. 4
    b. 17
    c. 0

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

1 Like