Calculate Inverse Function - Library

Is there any library that can have the inverse function? To be more specific, given the function y=f(x) and the domain, is there any library that can output x=f(y) ? Unfortunately, I cannot use matlab / math in my application looking for a C / Python library.

+6
source share
2 answers

I'm a bit late, but for future readers of this publication, I just published a python package that does this for sure. https://pypi.python.org/pypi/pynverse There is a detailed description of how to use it and how to do it in the description!

+5
source

As already mentioned, not all functions are reversible. In some cases, using additional constraints helps: think about the opposite of sin(x) .

Once you make sure your function has a unique inverse, solve the equation f(x) = y . The solution gives you the inverse, y(x) .

In python, find nonlinear solvers from scipy.optimize .

+2
source

All Articles