It doesn't work because our solve() is a little poor at solving more complex equations like that one right now. To be honest, you will find with SymPy that it is really good at some things and not so good at others, because everything is implemented by volunteers, who only implement things that they are interested in or need for something. The good news is that the list of things it is good at is always increasing and the list of things that it is bad at is always shrinking, and it has gotten pretty good at many things in the past few years.
So basically, what I did should be implemented (recognize that it is a polynomial in some function of x, in this case cos(x), then solve recursively), but it isn't. If you are interested in improving the algorithm, we are always welcome to contributions. Just ask here or on the IRC channel if you need help. Aaron Meurer On Aug 31, 2010, at 5:36 PM, Dan wrote: > Aaron, > > Many thanks for your clear explanations of the problem. Sympy is > awesome, you managed to get a result in the end, but I don't think > many users would have been able to get this one to work. > > I'd be interested to know why it doesn't work straight off and why > your hack got a result. -- 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.
