Homework on Functions - Questions

  1. Gets input and gives output. In between it alters the input with a defined mathematical operation
  2. a) 4 b)17 c) 0
  3. f(x) = x/4 -5
2 Likes
  1. A function is a mathematical formula which provides instructions on how to handle inputs.
  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) error
  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 takes an input, performs a computation and produces an output.
  2. If input is an even number, output will be x squared.
    If input is an odd number, output will be x + 10
    a)4
    b)17
    c)0
  3. f(x)=x/4-5
1 Like
  1. A function is a list of instructions to perform a mathematical statement
  2. f(x) = { x^2 if x is even

x+10 if x is odd}

A f = 2^2 if x is even (2 x 2 =4) Answer is 4
B 7+10 if x is odd (7 +10 = 17) Answer is 17
C 0^2 if x is even (2 x 0= 0) Answer is 0

1 Like

Every sentence you typed made prefect sense to me, before that I was completely lost which means I am far behind on understanding the rules of algebra. I am going to check the links out on top and get up to speed with any information I find. So if there are no parenthesis separating the odd and even statements in between the{} does this make it a β€œor” statement? I cannot figure out why β€œor” is used and sometimes not use in programing or in this specific statement.

  1. A function takes an input and gives an output
  2. F(2)= 4
    F(7)= 17
    F(0)= 0
  3. F(X)= X/4 - 5
1 Like
  1. A function gives you a result (output) from an input based on a formula.

  2. a) f(x) = 4
    b) f(x) = 17
    c) f(x) = 0

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

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

Computation that takes an input and results in an output

  1. A. 4

  2. B. 17

  3. C. 0

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

1 Like
  1. A function is the act of modifying an input to get an output.

  2. a) f(2)= 4

    b) f(7)= 17

    c) f(0)= 0

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

1 Like
  • Homework - Functions

    • Describe what a function does in your own words?

A function is a relation that maps a set of inputs, or the domain, to the set of outputs, or the range. Note that for a function, one input cannot map to more than one output, but one output may be mapped to more than one input.

  • 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) => f(2)=2^2=4

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

  • c) f(0) => f(0)=0 or f(0)=10

    • 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 takes an input and processes it according to the rules.

  • a) 4
  • b) 17
  • c) 0
  1. f(x) = x / 4 - 5
1 Like
  1. A function does the same transformation to each variable input, which is most of the time X.
  2. a = 4, b = 17, c = 0
  3. f(x) = x / 4 - 5
1 Like

0 is considered an even number so only one is correct :wink:

  1. Function could be described as a mathematical equation, in which the input values based on a defined function would vary the output values.

  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 a relation usually a mathematical relation) between and input and and ouput

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*2 = 4
  • b) f(7) β€”> 7+10= 17
  • c) f(0) β€”> Error or 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

why Error? Zero is an even number, So F(0) = 0^2 = 0.

  1. Transforms an input to an output.
    2.a= 4
    b= 17
    c= undefined

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

1 Like
  1. a function is a computation - kind of like a formula
    2a f(2)=4 b f(7)=17 c f(0)=0
    3 f(x)=x/4 - 5
1 Like

Homework on Functions - Questions

  1. Describe what a function does in your own words
    A function is used to compute an input and get a desired output.

  2. Calculate the output of the following function
    (a) = 4
    (b)= 17
    Β©= 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 is a computation in which a given variable (x) is entered in an equation as an input and the output is given as the answer to that computation.
  2. a) f(2)= 2^2= 4
  3. b) f(7)= 7+10= 17
  4. c) f(0)= 0
  5. f(x)= (x/4)-5
2 Likes