Mathematical functions are similar, but not quite the same as functions in C++.
y = f(x)
where
f(x) = x2
will produce a value if we give a value for x. For example,
y = f(3) = 9 y = f(4) = 16 y = f(5) = 25 y = f(3) = 9
If the same value for x is given to a mathematical function, it always gives the same result.
y = f();