Hi. Unfortunately, solve currently does not have that implemented.
In [66]: solve(cos(x), x) Out[66]: ⎡π⎤ ⎢─⎥ ⎣2⎦ You could trick it into giving you the solutions you want by doing something like In [67]: solve(cos(x - n*pi), x) Out[67]: ⎡π + 2⋅π⋅n⎤ ⎢─────────⎥ ⎣ 2 ⎦ but that only works if you know ahead of time that the solutions are periodic with period n*pi. But I think we should implement it in solve to be able to return the kind of solutions that you want. Aaron Meurer On Mar 9, 2011, at 8:01 AM, Matteo wrote: > Hello! With sympy 0.6.7 how can I obtain (with solve, maybe) all > solutions of a simple trigonometric equation like 'cos(x)=0' (I mean: > x=1/2*pi+n*pi, with n Integer)? > > Thanks!! > Matteo -- 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.
