- A function computes an output as the result of an input.
- a. 4 b. 17 c. 0
- f(x)= (x/4)-5
-
A function applies the same condition to every input resulting in an output
-
4
17
0 -
f(x)= (x/4) - 5
- Describe what a function does in your own words
Function relates an input to output, A function does create a formular to perform different mathematical operations.
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
}
f(x) = (x/4) - 5
A function takes the instruction(s) written and performs it when needed without failure or abuse. So if a parameter is set, the function will act once the parameter is met.
4
17
0
f(x)=(x/4)-5
-
Describe what a function does in your own words
A function is a list of computations to be performed on variable 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
}
- A function is something i tell a computer pgrogramm to do. I programm the function first to act a certain way i like i give an input and want the output by the rules of the function i coded.
I discribe first what the imput is with a variable and at the output funktion with the attribute i want to have in the output
2:
a) f(2) = 2 x !2 = 4 first function because 2 is even
b) f(7) = 7 + 10= 17 second function because 7 is odd
c) f(0) = 0 x !2 = 0 first function because 0 is even
f(x) = {
x = / 4 (-5)
}
Dont know if the code is right like that…
- It takes the input and computes itself regarding it
- a) 4
b) 17
c) 0 - f(x) = x/4 - 5
[quote=“ivan, post:1, topic:8429”]
- Describe what a function does in your own words
A function is a program of instructions to return a computed value on the input or argument that was passed to it when it was invoked.
- Calculate the output of the following function
Function to return a value based on whether the input is odd or even
If the input is even multiply it by itself
If the input is odd add 10 to it
Therefore:
a) 2 returns 4
b)7 returns 17
c) 0 returns 0
[quote=“ivan, post:1, topic:8429”]
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
[Ans] Performs computation as per the relationship defined between the input and 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)
[ans] 4 - b) f(7)
[ans] 17 - c) f(0)
[ans] 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.
[ans] f(x) = (x/4) - 5
-
Used to designate an input in order to get an output from the program
-
a. 4
b. 17
c. 0 -
f (x) = x/4-5
Homework on Functions - Questions
- Describe what a function does in your own words
- Functions are mathematical calculations to get output (results) out of an input (data).
- 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 computation that takes in an input, does a computation and gives an output
2a. 4
2b. 17
2c. 0
F(x) = {
X/4 -5
}
Function is same as computation. Computation is made of three elements : input ,output and some calculation between this two.
So 1) F(x)=22=4
2) F(x)=7+10=17
3) F(x)=02=0
f(x) = (x/4)-5
-
A function allows you to make life easier by having preset formulas etc.
-
a: 4, b: 17, c: 0
-
f(x) = (x/4)-5
- A function takes in an input and performs an operation to give an output.
2a. 4
2b. 17
2c. 0
- f(x) = (x/4)-5
- A function performs calculations on a variable input to provide an output.
- a) 4 b) 17 c) 0
- f(x) = x/4-5
- Describe what a function does in your own words
A function computes output based on your 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)
- b) f(7)
- c) f(0)
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
Describe what a function does in your own words
Functions takes input, does calculation(s), then results in 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 does a set of operations on the inputs provided to it and will return an output.
- f(2) - 4, f(7) - 17 , f(0) - 0
- f(x) = (x/4)-5
-
A function is a computation
-
A. 4
B. 17
C. 0
C. F(x) = x/4 - 5