Homework on Functions - Questions

  1. Describe what a function does in your own words

A function means when you put into an input, it will calculate an 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. A Function is a computation that provided an input performs some operation on it resulting in an output. in a deterministic way (you always get the same output).
  1. a) f(2) = 4
    b) f(7) = 17
    c) f(0) = 0
  1. f (x) = (x/4) - 5
1 Like
  1. A function is a computation that takes an input and gives you an output based on the expression.
  2. a) f(2)=4
    b) f(7)=17
    c) f(0)=0
  3. f(x)= (x/4)-5
1 Like
  1. A function is a mathematical equation with an input and 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 relates an input to an output, usually is written like f(x)=…

  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 take an INPUT does a mathematical calculations and give us an OUTPUT.

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

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

1 Like

1.A function is a mathematical equation. It receives an input and based on the function it creates can output.

2.f(x)= 2^2=4 when x is even and f(x)=7+10=17 when x is odd

f(x)=0 when x is 0

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

  1. 4
  2. 17
  3. 0

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

2 Likes

Course Home
Dashboard
All Courses
My Account
Logout
Homework – Functions
Blockchain & Bitcoin 101 Homework – Functions
IN PROGRESS

Describe what a function does in your own words
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
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 applies the same rules to changing variables.

  2. a. 4
    b. 17
    c. 0

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

2 Likes
  1. A function carries out the same task to whatever variable you choose to input.

a. 4
b. 17
c. 0

  1. f(x) = (x/4) - 5
1 Like
  1. A function is a computation that takes an input and gives 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 computation in which you define the input. The function then generates 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)=4
  • b) f(7)=17
  • c) f(0)=0, unresolved
  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…as described verbatim would be:
    Let f(x)=x/4
    f(f(x))=f(x)-5

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

1 Like
  1. A function is a computational box that takes an input, performs a mathematical task then returns an output

  2. a) 4, b) 17, c) 0

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

1 Like
  1. A function is a defined mathmatical rule that is applied to an input number, resulting in a unique output number.

  2. a) 4
    b) 17
    c) 0

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

2 Likes
  1. Describe what a function does in your own words.
    Functions are the basics math principals used in coding on the blockchain.

  2. Calculate the output of the following function
    a. 4
    b.17
    c.0

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

2 Likes
  1. A function is the input that you want to get as an output
  2. A)4
    B)17
    C) 0
  3. f(x)= {
    (X/4)-5}
1 Like
  1. a Fx does a calculation with an input that gives and determined output

  2. a= 4
    b= 17
    c= 0

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

1 Like
  1. A function is a computation with x as a variable

2.a. f(4)
b. f(17)
c. f(0)
3.f(x)=/4-5

1 Like

1.A function is when you plug in a number and you get another number in return.
2. a) 4 b) 17 c) 0
3.fx= x/4-5

1 Like
  1. A function is a mathematical computation that takes any variable input and generate a certain output.

a) 4
b) 17
c) 0
3. f(x) = (x/4)-5

2 Likes