Homework on Functions - Questions

Function gives output when given input variable

a) 4
b) 17
c) 0

1 Like
  1. Describe what a function does in your own words
    A function is a mathematical calculation that changes the output depending on what input is entered

  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. a function is a computation using a variable value to calculate an output

  2. 4 ; 17; 0

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

1 Like

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

  1. Describe what a function does in your own words
  2. Calculate the output of the following function
f(x) = {

x^2 if x is even

x+10 if x is odd

}

[/quote

1/ A function is a computations write has F in syntax way , it does created a input based by a number given and result a output number. F (x) = X= + 1 = output.

2/ A 4
B 17
C 0

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

1 Like
  1. A function translates an input into an output. We have to define the input (x) and determine how the function has to transform it into the output.
  2. a) 4, b) 17, c) 0
  3. f (x)=(x/4)-5
1 Like
  1. a function transforms the inputs into output(s) result(s) after applying some math formulation or algorithm or reaching some singularity/exception resulting in impossible result to be delivered.
  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 math formula that you can design to calculate different problems
2 a ) 4
b) 17
c ) 0
3 f(x) = x/4 -5 ;

1 Like

1- A function is a mathematical equation in whic X is the variable.

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

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

2 Likes

1
A function compute a given variable value the way defined by what’s on the other side of the equal symbol.

2
a) 4
b) 17
c) 0

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

1 Like
  1. In mathematics, a function takes an input and provides an output based on a pre-defined formula.

  2. (a) 4 (b) 17 © 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 a mathematical mechanism that takes in input, does something with the input, and gives back 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
  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 just a designated computation of an input and an output.

2.a = 4
2.b = 17
2.c = 0

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

0^2 = 0 (and it’s definitely defined) only dividing by zero is problematic.

When x is even do x^2
When x is odd do x+10

Replace x with 2. This is even, so f(2)=2^2=4
Replace x with 7. This is odd, so f(7)=7+10=17
Replace x with 0. This is even, so f(0)=0^2=0

  1. A function is an equation which performs actions of fixed parameters on an input thereby changing the parameters of the output.

  2. a) 4 b) 17 c) 0

  3. f (x/4) - 5

1 Like

Sure - I misread the assignment - thanks for correcting me ;o)

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

  • a) f(2) = 4
  • b) f(7) = 17
  • c) f(0) = 0
  1. f(x) = (x/4) - 5
1 Like

f(x) = {
x^2 if x is even - then the Output will will be even results.
x+10 if x is odd - will be always odd.
}

  • a) f(2)
    F(2) = {
    x^2= 4
    b) f(7)
  • c) f(0)
  1. Describe what a function does in your own words
    A function takes an input and gives an output based on a set of parameters defined by the function

  2. Calculate the output of the following function
    4
    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. Function transforms an input by computing logic
  2. a) 4
    b) 17
    c) 0
  3. f(x) =(x/4)-5
1 Like