- A function is an action
2a) 4
2b) 17
2c) 0
- f(x) = {
(x/4)-5
}
2a) 4
2b) 17
2c) 0
(x/4)-5
}
f(x) = { x^2 if x is even
x+10 if x is odd }
a) f(2) -> input is even -> output of f(2)=4;
b) f(7) -> input is odd -> output of f(7)=17;
c) f(0) -> input is even -> output of f(0)= 0
A function calculates an arithmetic problem which receives an input to the syntax, and outputs the result.
f((x/4)-5)
A function is a defined set of procedures about how to process provided input in order to generate output. For example, a function can be a defined computation that takes in numerical variables as input, processes the input in a defined way to generate output.
f(x) = {
x^2 if x is even
x+10 if x is odd
}
a) f(2) = 4
b) f(7) = 17
c) f(0) = 0
f(x) = (x / 4) - 5
My biggest nightmare is Maths, I skipped Engineering to avoid maths. I understood the video, but couldn’t understand the question at all. It brought back the horrifying memories of me failing in maths tests. I will learn the math and come back again. I’m sure , I will be able to do it now because I see a more practical sense of it.
A function is a math formula where you can alter an input with a variable to get an output.
a) x = 4
b) x = 17
c) x = 0
f(x) = (x / 4) - 5
Describe what a function does in your own words
Output generated based on the input with specified actions
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?
f(x) = x/4-5
1. Describe what a function does in your own words
The function defines what the output will be based on the input
1. 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)=0^2=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 A function gives you and output for every input.
2
a. 4
b. 17
c. 0
3 F(x)= x/4-5
A function takes an input, and generates an output based on a specific set of pre-scripted rules.
a) 4
b) 17
c) 0
f(x) = (x/4)-5
A function takes an input and runs a pre-programed calculation to it to get an output.
f(x) = {
x^2 if x is even
x+10 if x is odd
}
a) f(2)
b) f(7)
c) f(0)
a)4
b)17
c)0
f(x) = (x/4)-5
1 - A function is the formula that turns an input to an output
2 - A = 4, B = 17, C = 0
3 - f(x) = (x/4) - 5
Describe what a function does in your own words.
A function can take an input as a parameter. In the body of the function we can write some logic to manipulate the input and return it as 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
Describe what a function does in your own words
A function is a mathematical formula designed for a specific purpose. Within any function, there can be as few as one variable or can have many variables depending on the purpose of the function. With any function there is always an input and an output result.
Calculate the output of the following function
What will be the output for the following inputs?
a) 4
b) 17
c) 0
f(x) = (x/4) - 5
Describe what a function does in your own words: Function is a rule to compute the result based on the specific 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) >> Output is 4
b) f(7) >> Output is 17
c) f(0) >> Output is 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