Homework on Functions - Questions

  1. a function adds a property to a variable.

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

Functins are computations . They are like a set of rules or laws about what happens with different inputs based on circumstanses and what will be the 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) = 2^2 = 4

  • b) f(7) = 7+10=17

  • c) f(0) = 0 ^ 2=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. A function takes a number as an input, runs some computations on it, and outputs a different number.

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

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

1 Like

1/ It is a computation, by having an input you get an output. It calculates and gives you a result.
2/ a:4 b:17 c:0
3/ f(x) =( x/4)-5

1 Like
  1. A function takes an input and calculates an output based on programatic criteria.

  2. 4, 17, 0

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

1 Like

A function calculates an output according to an input formula.

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

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

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

With a function, which is a mathematical formula, you take an input and get an output as a result.

  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) = 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 a mathematical computation in which there is an input and output with a variable denoted as x.

  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 an instruction we can apply to input to get a certain output.
  2. Calculate the output of the following function
    f(2)=2x2=4
    f(7)=7+10=17
    f(0)=0x2=0
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)
  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. Describe what a function does in your own words
    A function is an object sequence based on a pattern. Where the object is a number and the pattern is a formula equation. Giving that function a number returns the result of that equation. Important to note that if we treat numbers as objects then objects can have properties or conditions eg odd or even numbers etc

  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)

a) f(2) = 2^2 = 4
b) f(7) = 7+10 = 17
c} f(0) = 0 or false

  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. Describe what a function does in your own words?
    A function is a mathematic formula that takes an input and gives back an output. value
  2. Calculate the output of the following function

• a) f(2) f(2)= 2X2 = 4
• b) f(7) f(7) = 7+10 = 17
• c) f(0) 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. A function is a computation which performs a calculation on an input in order to derive an output.

2a. 4

2b. 17

2c. 0

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

Homework: Functions

A function takes an input, then it does calculations, and then then it emits an output.

a) = 4
b)= 17
c)= 0

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

1 Like
  1. Describe what a function does in your own words
    A function is a computation that gives an equal unit to calculate an output.

  2. Calculate the output of the following function
    f(x)=2

x^2 if x is even. I am lost on this question as I have no understanding of the equation.
Not familiar with this symbol ^ ???
Need help understanding the formula before I can have a go at answering the question.

x+10 if x is odd. Again I didn’t understand the equation to give an answer.

What will be the output for the following inputs?
a) f(2)=2
b) f(7)=14???
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.

I need more information to answer this question. Can anyone help, please?

1 Like
  1. An equation that calculates an output based on the input

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

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

1 Like

Describe what a function does in your own words

  • a function is an operation where when we give an input and some rules after which it will give us a specific output based on the given input and the set of rules.

a) f(2) = 4

b) f(7) = 17

c) f(0) = 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

1. Describe what a function does in your own words

A function is a process that takes an Input (usually a number) and after some processing and calculations it returns an Output.
A function always does the same processing in every Input.

2. 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)
2 is even, we calculate according to the first branch of the function
f(2) = 2^2 =4

b) f(7)
7 is odd, we calculate according to the second branch
f(7) = 7+10 = 17

c) f(0)
0 is even, we calculate according to the first branch
f(0) = 0 ^ 2 = 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- Function is a mathematical equation where the X is a variable and input which defines the output

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

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

1 Like

The ^ is an exponent, its often used in text editors that don’t support the numbers above the base number.
exponent-and-base

7 is an odd number, so you must add 10.

What do you need help with? You must construct a function (f(x)) based on the instructions. :slight_smile:

Is this a typo? :slight_smile:

1 Like