Homework on Functions - Questions

Homework on Functions - Questions

  1. Describe what a function does in your own words - Function is an equation that takes input and gives us specific output

  2. Calculate the output of the following function
    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

Q1: A function is simply a mathematical term for a calculation. It takes an input performs a calculation to create an output.

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

Q3:

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

1 Like

Nice to disagree but sorry to tell you that you are absolute wrong for this homework because you mix algebra symbols with logic symbols! It is the same as if you would try to solve chemical problems through physics. Plus logical symbols in maths are mostly used to explain something that you can’t explain quickly by words https://en.wikipedia.org/wiki/Logic#Mathematical_logic When they say ^ means and. It doesn’t mean plus as you think. It means if we have a wall AND(^) want to go through, we make a door. The ^ as a mathematical symbol for this homework means in the power of. https://www.rapidtables.com/math/symbols/Basic_Math_Symbols.html#basic look at the link you providet at the beggining were it says a^b. Plus you write it a little bigger and not on top https://en.wikipedia.org/wiki/List_of_logic_symbols

1 Like
  1. Describe what a function does in your own words
    A function is basically computation which contains an input and an output, and it will execute whatever you program it to do.

  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)

Quick remark* I think ^ is supposed to be a + in this part of the function; (x^2 if x is even)
Assuming that I am right the answers should be:

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/4) = x/4-5

1 Like
  1. A function is a mathematical computation which provides output values for different input values.

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

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

1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
    It takes an input and calculates an output based on the parameters outlined in the syntax of that function.
  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
  1. Functions serve as mathematical formula. Input will be calculated and an output will be given, depending on the function.

2 )
x^2 = 4 because 2 x 2 = 4

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

f(0) = 0 because 0 is not a number

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

So I presume this means that superscript is not allowed.
Thanks for caging my gyro.
I’ve been living under a rock.

  1. Describe what a function does in your own words
    It is a sort of converter where the programmed input will go through a pre-calculated function and create an output. Whenever the input is changed, the output will also be changed mathematically.

  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.
    [/quote]
    f(x) = {(x/4) - 5}
1 Like

1. Describe what a function does in your own words
A calculation that converts an input to an output.

2a)
f(2) = 4

2b)
f(7) = 17

2c)
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. You give something a calculation and it gives you an output, this is what a function does.
    2a. F(X) = X+1
    2b f7= 17
    2c. F(0) =0

  2. F(X)= X/4-5

  1. a function takes a input and produces a output based on the functions purpose.
    2
    a. 4
    b. 17
    c. 0
  2. (x) = (x/4)-5
1 Like
  1. Describe what a function does in your own words
    It is a calculated script with a pre-programmed result with unique variable (x)
  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) 4

b) 17

c) 0

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

x^2 This was the bit that threw me but i get it now

1 Like

A function sets the computation parameters for a variable.

a) 4
b) 17
c) 0

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

1 Like
  1. A function is a mathematical construct which transform an accepted input parameter into an output. The transformation is dependent on the mathematical definition of the function

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

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

1 Like

Function is relations of inputs and outputs.
4
17
0< Why it should be null?

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

A function takes an input argument and performs some transformation on that value to give an output value.
a) 4
b) 17
c) undefined
3. f(x) = x / 4 - 5

  1. A function is a computation that has an input resulting into an output.

  2. A (4); B (17); C (0);

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

  1. A function is a computation that takes an input and computes it into an output.

  2. A = 4
    B = 17
    C = 0

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

1 Like