- Gets input and gives output. In between it alters the input with a defined mathematical operation
- a) 4 b)17 c) 0
- f(x) = x/4 -5
- A function is a mathematical formula which provides instructions on how to handle inputs.
- 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
- 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 an input, performs a computation and produces an output.
- 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 - f(x)=x/4-5
- A function is a list of instructions to perform a mathematical statement
- 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
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.
- A function takes an input and gives an output
- F(2)= 4
F(7)= 17
F(0)= 0 - F(X)= X/4 - 5
-
A function gives you a result (output) from an input based on a formula.
-
a) f(x) = 4
b) f(x) = 17
c) f(x) = 0 -
f(x) = (x/4) - 5
- Describe what a function does in your own words.
Computation that takes an input and results in an output
-
A. 4
-
B. 17
-
C. 0
-
F(X) = X/4 - 5
-
A function is the act of modifying an input to get an output.
-
a) f(2)= 4
b) f(7)= 17
c) f(0)= 0
-
f(x)= (x/4)-5
-
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
- Write the definition of a function f that takes an input x, divides it by four and then outputs that result subtracted by 5.
-
It takes an input and processes it according to the rules.
- a) 4
- b) 17
- c) 0
- f(x) = x / 4 - 5
- A function does the same transformation to each variable input, which is most of the time X.
- a = 4, b = 17, c = 0
- f(x) = x / 4 - 5
0 is considered an even number so only one is correct
-
Function could be described as a mathematical equation, in which the input values based on a defined function would vary the output values.
-
a)4
b)17
c)0 -
f(x)= (x/4)-5
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
why Error? Zero is an even number, So F(0) = 0^2 = 0.
- Transforms an input to an output.
2.a= 4
b= 17
c= undefined
F(x) = (x/4)-5
- 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
Homework on Functions - Questions
-
Describe what a function does in your own words
A function is used to compute an input and get a desired output. -
Calculate the output of the following function
(a) = 4
(b)= 17
Β©= 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 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.
- a) f(2)= 2^2= 4
- b) f(7)= 7+10= 17
- c) f(0)= 0
- f(x)= (x/4)-5