Hacker News new | ask | show | jobs
by sparky_z 3226 days ago
I think what he's getting at is that the "inverse function"[0] of sqrt(x) is just x^2.

[0] https://en.wikipedia.org/wiki/Inverse_function

1 comments

Correct, that is what I intended. The inverse of any function whose application, subsequent or prior to the function, leads to the identity. The reciprocal, on the other hand, is very clearly understood to be the quotient such that the nominator and denominator are reversed.
> The reciprocal, on the other hand, is very clearly understood to be the quotient such that the nominator and denominator are reversed.

That depends on the math you use. In this case you are given a floating point argument, so there really isn't a concept of reciprocal either, because it's not a rational number. There are places where "reciprocal" is not specific to the rationals, but there it is usually a more general term meaning pretty much the same as inverse.

In both cases context is everything, and trying to read this - as with all math - in isolation is likely, almost inevitable, to cause confusion.

In this case it's the multiplicative inverse of the square root of the argument.