It doesn't support it directly, mainly because there is no nice way
for solve to return parameterized solutions, but you can do it
yourself pretty easily. Just note that sin is 2*pi periodic, so do
solve(sin(x + 2*n*pi), x)
where n = Symbol('x', integer=True). Then substitute various integer
values of n in the solutions to get all the answers. If there are
multiple trig functions in your expression, to get the full set of
solutions in general, you'll need to use a different parameter for
each function.
Aaron Meurer
On Tue, Nov 26, 2013 at 12:28 PM, Alexander Birukov <[email protected]> wrote:
> Hello everyone.
>
> Basic example:
> solve(sin(x)) = [0, pi]
>
> I would like to have:
> solve(sin(x)) = [-pi, 0, pi]
>
>
> Can lib handle it or I should do it myself?
>
>
> Thanks, Alexander.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.