- A function is fixed set of operations that can take some input and gives an output based on the result of those operations when run on that input.
a) 4
b) 17
c) 0
f(x) = {
(x/4)-5
}
a) 4
b) 17
c) 0
f(x) = {
(x/4)-5
}
1. Describe what a function does in your own words
It’s a computation of an input which results in a specific output.
2. Calculate the output of the following function
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 the computational work to be done in order to receive an output from an input.
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, What is the hashing algorithm called used in Bitcoin?
The hash algorithm used for Bitcoin is SHA-256. This algorithm produces verifiably random numbers in a predictable amount of computer processing power.
2. Why is this hashing algorithm really hard (almost impossible) to brute-force?
Because of the number of potential variations, it is difficult or impractical to reverse the function’s output to obtain the input.
1.). It gives us the instructions and limits of an operation.
2.) F(2) = 2 ^ 2 = 4
F(7) = 7 +10 = 17
F(0) = 0 ^ 2 = 0
3.). F(x) = (x/4) - 5
Your answers are right but you posted your homework in the wrong thread.
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 block of code that runs when its wanted. You can pass data into a function and a function can return the data aswell.
A. 4
B. 17
C. 0
1)A function is a computation that has an input and an output
A)4
B) 17
C) 0
okay thank you Maki i will repost it in the right one
A function is a type of computation that takes an input and produces an output.
2. Calculate the output of the following function.
a) f(2) f(2)= x^2=4
b) f(7) f(7)= x+10=17
c) f(0) f(2)= 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
Describe what a function does in your own words
A function describes the relationship between an input and an output
Calculate the output of the following function
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 computation, a set of mathematical operations that can be applied to any input.
a) 4
b) 17
c) 0
f(x) = x/4-5
A function is a mathematical computation where one enters an input and gets an output.
2.Calculate the output of the following function: f(x)
a) f(2) = 4
b) f(7) = 17
c) f(0) = 0
f(x/4) = x - 5
A function is a computation - relates an input to an output.
a) 4
b) 17
c) 0
f(x) = {
(x/4)-5
}
a) f(2) = 4
b) f(7) = 17
c) f(0) = 0