And for another thing, what is the order of operations for functions like logarithms, sin, etc.? Are they evaluated left-to-right? |
They're handled inner-to-outer, if you're using brackets (which, to be honest, you should). If you're not, they're evaluated right-to-left, because the result of the "inner"/leftmost is the argument for the next.
E.g. d = sin log cos x²
a = x²
b = cos(a)
c = log(b)
d = sin(c); |
A value and a variable are the same; the variable is just a placeholder. In your example,
, you'd be wrong no matter what 'n' is. n is inside the brackets, thus it has to be squared, just like you would square the 'x' in (4x)², or the '2' in (4*2)².
I'm guessing your memory is pulled out of context. Sometimes, 'n' has a placeholder is all you need. If you don't need to know the actual value, for example, which is in strong contrast to the common "solve for x" when we see the variable x. This is often the case in proofs, or any form of generalized expression, as in "for any value of 'n'": 'n' has no value; it's a placeholder. It signifies
any and
every value (unless explicitly bounded).
You can treat them differently, and you probably should. If you get a set of equations in x, y, z, then you'll end up trying to find the appropriate values for those three variables. If you get x, y, z and n, chances are you'll have to find values for x,y and z, expressed in 'n'. (e.g. x = 5n, y = 3/2n, z = 5^n).