Homework on Functions - Questions

  1. Describe what a function does in your own words
    Provides a calculated result to a given 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?

  • a) f(2)
    x=2; 2 = even; 2^2=4; output=4
  • b) f(7)
    x=7; 7 != even; 7+10=17; output=17
  • c) f(0)
    x=0; 0 = even; 0^2=0; output=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 computes an output for a given input.

2.a.4
b. 17
c. 0

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

1 A function performs some kind of action (in this case a calcolous) given an input (x) that interact with a predetermined set of operations.

2 a) 4 b) 17 c) 0

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

1 Like
  1. A function is a computational process that applies rules to an input to generate an output

  2. a. 4
    b. 17
    c. 0

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

1 Like

Describe what a function does in your own words:
A function is an instruction that changes an input to an output.

a) 4
b) 17
c) 0

1 Like
  1. Computation of an input to get an output.
  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 isolates a computational process. It can be invoked multiple times with different inputs to perform the same operation and create an output. A function may have multiple inputs but only one 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) = 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. Describe what a function does in your own words?
    A function performs a computation of an input returning an output.
  2. Calculate the output of the following function
    a). f(2)={2^2 if 2 is even 2+10 if 2 is odd} =4
    b). f(7)={7^2 if 7 is even 7+10 if 7 is odd} = 17
    c). f(0)={0^2 if 0 is even 0+10 if 0 is odd} =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: a function does execute a rule you give to it. It has an input and an output

2: a) 4
b) 17
c) does not work

3: f(x)=
{

x/4-5

}

a function does some tasks as computations. they may have an input and/or return an output value

calculations:
a) 4
b) 17
c) 0
…
f(x) = {
x / 4 - 5
}

1 Like

[quote=β€œivan, post:1, topic:8429”]

  • Describe what a function does in your own words
    Functions does mathematicals operations to calculate an output once an input is given
  • Calculate the output of the following function
    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)=(x/4)-5

A function is a way to manipulate different values; it is a computation tool used to essentially the the math for us.

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

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

1 Like
  1. Describe what a function does in your own words
    A function is a basic math equation that consists of an input and an output. Usually following some rule like adding 1 to the input or multiplying it.
  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
2 Likes
  1. Function is a process that can be call when needed, can be static or dynamic.

2
a) 4
b) 17
c) 0

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

Homework on Functions - Questions

  1. Describe what a function does in your own words
  • A function f(x) takes an input (x) and produces an output (y) based on the mathematical operations of the function.
  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. A Function is basically a computation that takes input and gives an output according to computation.

  2. a) 4 b)17 c) 0

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

1 Like
  1. A function is a mathematical operation. If you give a input, the function calculate it and gives you an output.
  2. condition 1: f(x)=(x^2), if x is even,
    condition 2: f(x)=(x+10), if x is odd.
    GIVEN: a) x=2
    b) x=7
    c) x=0
    since a) x=2 is even an number we will use condition 1 so the output will be
    f(2)=2^2,
    so the answer is = 4

and b) x=7, since 7 is an odd number we will use condition 2 so that the output will be
f(7)=7+10,
so the answer is = 17

     c) x=0,
        f(0)=0^2  so the answer is =0
  1. f(x)=(x/4)-5
1 Like

A function it is a calculation. At any given input it produce a deterministic output

) 4
) 17
) 0

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

1 Like
  1. Describe what a function does in your own words
    A function is simply a mathematical computation with an input and an output. The function defines the formula to determine the output.

  2. 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

Homework on Functions - Questions

  1. Describe what a function does in your own words
  • In most cases, function has a variable/s and set of rules applied to it which are used to generate 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): 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