Is this a typo? If X is even, you should square it
Forgot to add the answers down:
A. 4
B. 17
C.0
- Describe what a function does in your own words
You define a computation to be applied on the input and the function use this computation to get you the output - 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
- Function takes input, uses some formula and gives output.
- a) 4
b) 17
c) 0 - f (x) = x/4 - 5
- A function is a equation that is attributed to a name. If i decide that the letter f is equal to x+2, the output gonna be my number +2. soo if x=1 , f(x)= 1+2=3
2.a. 2x2=4
b. 7+10=17
c. 0x2=0
3.f(x)= x/4-5
1.Multiply by 2 if the number is even
Add 20 if the number is odd.
a. 4
b. 17
c. 20
f (x/4): x-5
-
A function is a computation with set parameters that gives an output based on the input of variables. For example, if there was a function defined as f(x) = x+3, whatever variable that would be input as x would always result in an output that is the variable defined(input) +3, eg x=4, output would be 7.
-
f(x)= x^2 for even numbers, and f(x) = x+10 for odd numbers
A. f(2)= 4. As x(2) is an even number in this function, the parameters tell us the output must be defined as 2^2 which equals 4.
B. f(7)= 17. As x(7) is an odd number in this function, the parameters tell us the output must be defined as 7+10 which equals 17.
C. f(0)=0. As x(0) is defined mathematically an even number, the function tells us that the output of the function must be determined as 0^2 which equals 0.
- f(x) = (x/4) - 5
1. Describe what a function does in your own words
A function is a computation that produces an output based on 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) = 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
- Describe what a function does in your own words - Functions are mathematical computations where there is an input --computation β output
- 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(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
-
A function is designed to produce an output based on the input the user provides.
-
a = 4 / b = 17 / c = 0
-
f(x) = (x/4) - 5
- Describe what a function does in your own words
Itβs a mathematical formula that takes a variable input and produces an output
- 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
-
A function is a computation where an input is given to solve for an output.
a) 4
b) 17
c) 0
- f(x) = (x/4)-5
-
Describe what a function does in your own words
A function is a mathematical expression that when given an input, produces an output based on the conditions and logic set by the function. -
Calculate the output of the following function
f(x) = {
x^2 if x is even
x+10 if x is odd
}
f(2)=4
f(7)=17
f(0)=0
3.f(x)=(x/4)-5
1. Describe what a function does in your own words
Function is computation. It will give us result based of function and 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
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
-
- Functions are computations that take an input to perform a mathematical calculation, resulting in an output.
-
- A) f(2) -> F(x^2) = {4}
B) f(7) -> F(x+10 = {17}
C) f(0) -> F(x^1) = {0}
- f(x) = (x/4)-5
-
A function applies a mathematical formula to an input variable to produce an output
a) 4
b) 17
c) 0
- f(x) = (x/4)-5
Describe what a function does in your own words
A function is a programable computation where you can get a desired output based on a predetermined 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) =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
}
Homework on Functions - Questions
- Describe what a function does in your own words
A function takes an input and then converts that input to give an output. - Calculate the output of the following function
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
-
Describe what a function does in your own words
-> A function takes some type of input as argument/s and performs some calculations/processing on that input and returns an output. -
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) = 4 - b) f(7)
-> f(7) = 17 - c) f(0)
-> 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.Defines a mathematical behaviour to a certain value
2.
a)2
b)17
c)0
3.f(x)=(x/4)-5