Homework on Functions - Questions

  1. Describe what a function does in your own words
    A function takes an input and based on a computation puts out 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) = 2
  • 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) = x4/-5

  1. Describe what a function does in your own words/ A function is a mathematical algorithm that enables you to insert an input solves an equation and gives an output
    2A/ 4
    B/ 17
    C/ 0
    3/ f(x)=x/4-5
1 Like

1 A function carries out an instruction on an input

2, a) 4
b)17
c)0

  1. f(x)=(x/4)-5
1 Like
  1. A function takes a input value and gives you a 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 is computation, changes one number by a formula
  2. Calculate the output of the following function
    a) 4 b 17 c 0
    3 f(x)=(x/4)-5
1 Like

A function executes an operation or operations on a given variable or variables to generate a value.

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

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

1 Like

:sweat_smile: i was laughing for 5 minutes with your comment. Don’t worry about maths. You need the basic fundamentals of algebra like +,-,/,*,= and to know how to express them so the computer understands what you want him to do, you give the problem and the computer makes the practise for you. This is more to understand what a function in math is and how it works, so you can also later convert it in a computer language and it will be easier to understand how a computing language function works :wink:

1 Like
  1. A function takes some input value(s), performs some pre-defined (programmed) calculations and return the result of the calculations

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

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

1 Like
  1. a function is a mathematical condition to be achieved by applying a set of rules where whenever you have a input there is an expected output according to that set of rules.

  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.
    It defines the input in order for an output to be calculated.

a. 4
b.17
c.0

3.f(x) = 5 - x/4
NOTE: Because of the word choice “subtracted by 5” I belive I wrote it correctly. IF had stated “divides it by four and then subtracts 5 from that output” the answer would be f(x) = x/4 -5

1 Like
  1. A function is a computation that takes input in order to get an output.

  2. a) 4
    b) 17
    c) 0

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

1 Like

[quote=“ivan, post:1, topic:8429, full:true”]
Homework on Functions - Questions

  1. Describe what a function does in your own words

A Function is a computation formula(s) that takes an Input and computes an output. A Function relates an Input to an Output, and therefore an Output is related somehow to the Input.

  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) = 2x2 = 4

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

  • c) f(0) = 0 + 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 - A function is a defined rule that is applied to an input in order to gain an output.

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

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

1 Like
  1. Performs a computation on a given set of input values that returns an output value.
  2. a) 4 b) 17 c) 0
  3. f(x) = (x/4) - 5
1 Like

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

1. Describe what a function does in your own words
A function computes input based on a certain rule and gives you an output.

2. Calculate the output of the following function
a = 4
b = 17
c = 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. It is an equation where X is the variable
  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

Homework on Functions - Questions

1. Describe what a function does in your own words ; Functions is a computation, this computation have an Input that you give a specific functions to get an Output
2. Calculate the output of the following function

f(x) = {  

x^2 if x is even

x+10 if x is odd

}

 ( f(x) = { )     =    ( f(x)= x     
        x         =        x         x^2 if x is even
             f(x) = x^2
              f(x)=2x
                 f(2)

What will be the output for the following inputs? A) f(2)

a) f(2)

  • b) f(7)
  • c) f(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
[/quote]

  1. Describe what a function does in your own words
    A function is a computation of an output given an 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)
    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
    Computation (input/output) that performs mandated instructions.

  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 or undefined
  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