Homework on Functions - Questions

Yes I messed up with that, I thought the function was x^x for some reason and not x^2. I realised it after.
But thank you for the help :slight_smile:

2 Likes

Thanks, I didn’t know this property of zero

2 Likes
  1. Describe what a function does in your own words - Function does simple calculations where you have an input and the result is the 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
  1. f(x) = (x/4)-5
2 Likes
  1. The function is a computation which gives us output based on the input.
  2. a) = 4, b) = 17, c) = 0 .
  3. f(x) = x/4 - 5
2 Likes

1.Function is a mathematically relation where there is a defined input that creates the output.

  1. a) 4
    b)17
    c) 0
  2. f(x)=(x/4) -5
2 Likes
  1. A function takes an input and runs it through a predetermined equation to produce an output.

  2. a. 4
    b. 17
    c. 0

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

2 Likes
  1. a function is formula and describes what to do with input

  2. A. 2^2 = 4
    B. 7 + 10 = 17
    C. 0^2 = 0

  3. F(x) = (X/4)-5

2 Likes
  1. Describe what a function does in your own words:

Function is computation that take an input and generate an output
a) f(2)= 2X2 = 4

b) f(7) = 7+10 = 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

2 Likes
  1. A function uses an input and calculates an output.

  2. a) 4
    b) 17
    c) 0

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

2 Likes
  1. to describe what variable into a protocol

a) 4
b) 17
c) 0

  1. f(x) = (x/4)-5
2 Likes

Function is a computation where from an input you get an output

a-4 / b-17 / c-0

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

2 Likes

A function is a computation, a mathematical equation that has rules defined by the function.
f(x) = {x^2 if x is even f(x) = {x to the power of 2} if x = 2 the the answer = 4
f(x) = {x+10 if x is odd if f = 3 then 3 = 10 = 13
a) 4
b) 7
c) 0

1 Like

1 A function is an input relating to an output

  1. a ( 4 )
    b ( 17 )
    c ( 0 )

  2. f(x ) = /4 -5

2 Likes
  1. Describe what a function does in your own words
    it produce output by doing some computation with the input

  2. Calculate the output of the following function

  • 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
2 Likes
  1. A function can be thought of as a transition of an input to an output.

  2. a) -> 4; b) -> 17; c) -> 0

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

2 Likes
  1. A function is a computation. You give it an input, you do the calculation and the result is the output.

  2. a) 4
    b) 17
    c) 0

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

3 Likes

1.functions act as a computation. one number goes in, a different one comes out. based an predetermined parameters.
2. a.4
b.17
c. 0
3. f(x)= (x/4) -5

3 Likes
  1. a function is an equation with x as the variable, it receives inputs and computes them to outputs.

  2. a) 4
    b) 17
    c) 0

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

1 Like

Homework on Functions - Questions
1. Describe what a function does in your own words
A) A function is a set of rules put in place to perform a specific task when combined with an input, then resulting in 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) x=4
• b) f(7) x=17
• c) f(0) 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

2 Likes
  1. A function takes an input, performs an operation, and returns an output.

  2. a:4
    b:17
    c:0

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

3 Likes