Ask Your Question

paulkoer's profile - activity

2013-09-10 13:21:37 +0200 received badge  Taxonomist
2012-11-12 19:28:33 +0200 received badge  Famous Question (source)
2012-01-16 08:43:38 +0200 received badge  Notable Question (source)
2011-08-29 23:30:26 +0200 received badge  Popular Question (source)
2011-04-11 20:45:35 +0200 received badge  Good Question (source)
2011-04-11 17:27:39 +0200 commented answer Can sage compute the inverse of a function?

Benjamin, thanks for this hint, very useful!

2011-04-11 17:26:07 +0200 received badge  Supporter (source)
2011-04-11 17:26:06 +0200 marked best answer Can sage compute the inverse of a function?

Here is a stupid method:

var('x,y')
f(x) = log(x)
g(x) = solve(x == f(y), y)[0].rhs()
print g

Here is a compilation from several scattered sources:

2011-04-11 17:26:06 +0200 received badge  Scholar (source)
2011-04-11 17:26:05 +0200 commented answer Can sage compute the inverse of a function?

Thank you Kelvin! Your 'solve' method works for me. As for the Mathematica method, by using Sage I hope to avoid having to pay for a Mathematica license.

2011-04-11 15:37:38 +0200 received badge  Nice Question (source)
2011-04-11 15:02:37 +0200 received badge  Student (source)
2011-04-11 13:41:14 +0200 asked a question Can sage compute the inverse of a function?

Hello Sage community,

is it possible to compute the inverse of a function in one variable with sage? So say I have

f(x) = log(x)

and I want to compute

f.inverse()

Thank you Paul