a. 4
b. 17
c. 0
- f (x) = x/4-5
a. 4
b. 17
c. 0
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
A function is a mathematical computation defining a set of rules that calculates using an input to achieve an output.
a) 4
b)17
c)0
f(x)=(x/4)-5
Rob here on Functions:
2A.)
f(2) = 2^2
= 4
2B.)
f(7) = 7+10
= 17
2C.)
f(0) = 0^0
= 0
Homework on Functions - Questions
- Describe what a function does in your own words
A function receives an input and returns an output.
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
f(x) = {
(x/4)-5
}
A function is a fixed mathematical formula that will calculate an output when given an input. the input being the only interchangeable variable in the equation that will likely determine a different output.
a) 4
b) 17
c) 0
f(x) = {(x/4)-5}
4
17
0
f(x) = (x/4) - 5
Homework on Functions - Questions
f(x) = {
x^2 if x is even
x+10 if x is odd
}
What will be the output for the following inputs?
1.Functions can be defined as computations which have inputs.If u give something to such function such as number ,it does calculations and gives you output.
2. (a) 4
(b)17
©0
3.f(x)= x/4 - 5
f(x) = {
x^2 if x is even
x+10 if x is odd
}
What will be the output for the following inputs?
A function is a transformation process, that produces an output from a given input.
a) 4 b) 17 c) none
f(x) = x / 4 - 5
A function takes an input, performs some computation and returns an output.
f(x) = {
x / 4 - 5
}
A function is a simple input-output program. Given an input, it performs some pre-determined calculations to provide an outupt.
f(2) = 4
f(7) = 17
f(0) = 0
f(x) = (x/4) -5
1. Describe what a function does in your own words
A function is a computation or formula which uses an input to deliver 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) x= 2 (2 is an even number, this means the formula x^2 applies.) 2^2 = 4
b) f(7) x= 7 (7 is an odd number, this means the formula x+10 applies.) 7 + 10 = 17
c) f(0) x= 0 (0 is an even number, this means the formula x^2 applies.) 0^2 = 0
3. Write the definition of a function 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 programmable action that requires an in put and output
a.) 4
b.) 17
c.) 0
f (x) = { X / 4 -5}
A function is an predetermined equation where the input can differ, producing different outcomes.
a) f(2) = 4
b) f(7) = 17
c) f(0) = 0
F(x)= (x/ 4) -5
Describe what a function does in your own words
A function does something with an input which produces an output. Both the input and output can be anything from a string to a number to a boolean (at least in programming that is).
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 function needs an input and uses that input to calculate an output by the rules you give the function
a) f(2) = 4
b) f(7) = 17
c) f(0) = 0
f(x) = x/4-5