Homework on Functions - Questions

  1. A function gives you an output based on the declared variable.

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

  1. f(x) = (x/4)-5
1 Like
  1. A function gives you an output to an input.
  2. 4, 17, 0
  3. f(x) = (x/4)-5
1 Like

1 - Computation that gives output from input
2 - 4,17,0
3 - f(x)= (x/4) - 5

1 Like
  1. A function is single unit of computation that takes in an input and produces an output

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

  3. f(x) { (x / 4) - 5 }

1 Like
  1. Function is computation. We give input and get output

a) 4
b) 17
c) 0

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

1 Like

A function is a computation that allows for input for a variable. Let’s you solve for a 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 is an expression that has a variable as an input
  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?
    f(x)= 2^2= 4 f(x)= 7+10=17 f(x)= 0^2=0
  • a) f(2)
  • b) f(7)
  • c) f(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)= 2/4-5 f(x)=7/4-5 f(x)=0/4-5
1 Like

A function is a mathematical equation that is performed on a variable.
a. 4
b.17
c. 0
f(x) = x/4-5
Standard order of operations is assumed

1 Like

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

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

A function is mathmatical equation that can take an input to a desired output.

  1. Calculate the output of the following function.

f(x) =

x^2 if x is even

x+10 if x is odd

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. Function is like a small factory. It process and alters whatever you put it in with the same rules.
  2. 4 - 17 - 0
  3. f(x)= x/4 -5
1 Like
  1. A function deals with computation which gives an output based on the input and function parameters described.

a) 4
b) 17
c) 0

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

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

1 Like
  1. Function is a computation where it is given an input and through computation it creates an output

2 .

a) f(2) = 4

b) f(7) = 17

c) f(0) = 0

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

1 Like
  1. A function is a computation any input follows to create an output.

a) 4
b)17
c)0

  1. f(x) = (x/4) - 5
1 Like
  1. A function takes an input, performs a predetermined calculation, and provides an output.
  2. a) 4
    b) 17
    c) 0
  3. f(x) = (x/4) - 5
1 Like
  1. A computation with input and output.

  2. a) 4
    b) 17
    c) 1

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

1 Like

Is this a typo? :wink:

a function is a mathematical equation in which X is a variable
a. f(2), b. f(17), c. f(0)

q1-ans
Function is a program that take input and return value after perform some calculations.
q-2
a) f(2) = 4
b) f(7) =49
c) f(0) =0
q-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.
ans.
f(x) = {

x/4 -5

}

Haha. Definitely. It should be zero. Thank you. Don’t need that muscle memory moving forward.