I think this is doable. We just need to extend the algorithm to handle inverses of multi-argument functions.
By the way, we also should think of an API to let functions define their own inverses which would be recognized by solve(). That would be better than the dict that lives in solvers.py, line 2123. Aaron Meurer On Fri, Aug 24, 2012 at 9:14 PM, G B <[email protected]> wrote: > Excellent, thank you! I've pulled down the latest version from git and I'm > getting the same results. > > Don't know how hard this is to resolve, but you might want to extend it to > cover atan2 as well: > > solve(Eq(theta,atan(y/x)),x) ==> [x*tan(theta)] > solve(Eq(theta,atan2(y,x)),x) ==> barf > > Should those return the same results? > > > > On Friday, August 24, 2012 7:04:30 PM UTC-7, Aaron Meurer wrote: >> >> This works in the development version, and will work in the next >> version (to be released some time next month): >> >> In [1]: solve(Eq(y,asin(x)),x) >> Out[1]: [sin(y)] >> >> Aaron Meurer >> >> On Fri, Aug 24, 2012 at 7:43 PM, G B <[email protected]> wrote: >> > I'm brand new to sympy, but I've noticed that solve(Eq(y,sin(x)),x) >> > returns >> > [asin(y)], but solve(Eq(y,asin(x)),x) barfs. >> > >> > Is there a way for me to work around that? I'm running 0.7.1, python >> > 2.7. >> > >> > Thanks-- >> > Greg >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "sympy" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/sympy/-/9V50C7UVgbUJ. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/sympy?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/sympy/-/twjyNFVsneAJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
