I'll try explaining in math terms of what a function is.
Let's say you have an equation:
To find what y equals, you ask something like "What is y when x equals 4?" (Answer: 2(4)+3 = 11)
Instead of saying it verbally like that, people working with functions don't want to write "what is y when x = ..." all the time. So we have a different notation:
To say "What is y when x equals 4?" (or more accurately, "What is f when x = 4"), one can simply write "f(4)". The function in this case is called f, but it could be called anything you want, such as
Code:
g(x) = 2x + 3
y(x) = 2x + 3
f(z) = 2z + 3
elephant(x) = 2x + 3
// all these are the same!
Examples:
Code:
f(4) = 2(4) + 3 = 11
g(1) = 2(1) + 3 = 5
y(0) = 2(0) + 3
elephant(e) = 2(e) + 3 = 2e + 3
In the functions that you presented element is like the independent variable x. By itself, element means nothing. Just like how x means nothing. It's just a placeholder. Only when a value is passed, like in
Code:
f(x) = 2x + 3
passing 4 to f :
f(4)
x now takes on the characteristics of 4
2x + 3 -> 2(4) + 3 -> 11
does the varible have meaning
Bookmarks