This is a lovely (edit: having been in similar shoes, also terrifying-in-the-moment) example of a broader problem in teaching mathematics: the language we use to describe mathematical reasoning is a natural language, like English or Latin, and therefore full of the sorts of bizarre irregularities you'd find in a natural language. Mathematics is also a language about rigorously and precisely defined objects. The conce…
> x^{-1} means \frac{1}{x}, but f^{-1}(x) doesn't mean \frac{1}{f(x)}. That notation for inverse functions is truly appalling. I don't know how the first mathematician to think of that didn't immediately discard it as nonsensical and misleading.
It sounds like an algorithm for computing the inverse of the square root function, so one might think it's for squaring non-negative numbers, or something along those lines. Not so. It's for computing the reciprocal (the 'multiplicative inverse') of the square root of a number. [0]
Related to this: the way a superscript '2' next to a function means the function shall be applied twice (that is, composition with itself)... unless it's a trigonometric function, in which case it means the square of the result. [1] [2]
[0] https://en.wikipedia.org/wiki/Fast_inverse_square_root
[1] https://en.wikipedia.org/wiki/Function_composition#Functiona...
[2] https://en.wikipedia.org/wiki/List_of_trigonometric_identiti...