Locally invertible floating point functions

1 · John Cook · Nov. 23, 2022, 9:40 p.m.
Is the function x ↦ x + 2 invertible? Sure, its inverse is the function x ↦ x – 2. Is the Python function def f(x): return x + 2 invertible? Not always. You might reasonably think the function def g(x): return x - 2 is the inverse of f, and it is for many […] The post Locally invertible floating point functions first appeared on John D. Cook....