A function is where x is the variable.
- a) 2, b) 17 c) 0
f(x) = (x/4)- 5
A function is where x is the variable.
f(x) = (x/4)- 5
2a. 4
2b. 17
2c. 0
A function performs a calculation with variables based on input.
a) 4
b) 17
c) 0
A function is a calculation. It has an input and an output.
a) f(2)=2^2=4
b) f(7))=7+10=17
c) f(0)=0^2=0
f(x)=x/4-5
Describe what a function does in your own words
A function is an executable line of code that tells the computer what to do.
A function can can also take an input and perform a task with it returning a new output.
Calculate the output of the following function:
a) 4
b) 17
c) 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
}
Hi everyone, so during the lecture I felt like I understood how to do the math. It actually seemed easy but now I’m finding myself struggling to figure out how people got to their answers. Like I can kind of understand but I would love it if someone could do a breakdown or guide me to an answer that shows how it was done. I watched the lecture more than once so any help would be appreciated! Thanks in advance!
Btw what throws me off is the “if x is even” and “if x is odd”
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?
Even number is a whole number that is able to be divided by two into two equal whole numbers, for example 0,2,4,8… are even numbers.
Odd number is a whole number that is not able to be divided by two into two equal whole numbers, for example 1,3,5,…are odd number.
Is a branching function. Simply meaning you decide the path the function will take based on the function input. So in case where x = 7, it means that x is an odd number and therefore you use the second path (x + 10). And in case x= 2, since 2 is even number, you use the first path. f(2) = 2^2 = 4.
^ this symbol in mathematics always means to the power of, that means if you take (a) as an example f(2) = 2^2 or simpler f(2) = 2x2. if we had to the power of 4 (^4) and took the f(2) as a factor then we would have f(2) = 2^4 which mean f(2) = 2 x2 x2 x2 = 16.
F(x) is simply a notation for a function where x is the function variable or input. To get the formula for x you should read the question more carefully:
It states you should write a function f, that takes an input x and divides it by 4 => x/4
. Then outputs that result subtracted by 5 => (x/4) - 5
.
You could split this in two parts or functions a(x) which divides the input by 4 => a(x) = x/4
and takes this input in a new function that then subtracts the input by 5 => b(x) = a(x) - 5
or to simplify in one function you would get f(x) = x/4 - 5
.
THANK YOU!! I appreciate the timely response and effort into breaking it down for me in a way i can understand.
A function takes an input and creates an output. Basically, a computation following specific rules.
a) 4 b) 17 c) 0
f(x) = (x/4) - 5
a. 4
b. 17
c. 0
f(x) = (x/4)-5
You can compare it with a machine that always has an input and an output. The output is related to some extend to the input.
x^2 if x is even
x+10 if x is odd
}
X= 1
What will be the output for the following inputs?
• a) f(2) = 4
• b) f(7) = 13
• c) f(0) = 0
F (x) = (X/4) -5
1.a function is a code that is written and can be called multiple times referencing the commands given earlier, it saves time of rewriting important or bulky codes
a.4
b.17
c.0
3.f(x)=x/4 -5
also i guess its possibly
f(x/4)= -5
a function is a calculation that when you have some kind of input, it goes through the function and has a specific output.
4, 17, 0
f(x) = {(x/4)-5}
Calculate the output of the following function
evenf(x) = {4,16,36,64…
oddf(x)={11,13,15,…
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 takes an input and computes an output within given parameters.
A) 4, B)17 , C) 0
f(x) = (x/4)-5
A function takes an input and then performs an action to produce an output.
a) 4 b) 17 c) 0
f(x) = (x/4)-5
Function-
A function is a mathematical computation that takes an input, computes it and gives an output.
a. 4
b. 17
c. 0
f(x) = (x/4) - 5