Well, I've used that:

arg = something
solutions = solve(sin(arg))
solutions_trig = [(sol - pi) for sol in solutions]

as I remember, sin is fine with it because at [-1, 1] it's mirroring itself 
at (0, 0) for most functions.

среда, 27 ноября 2013 г., 0:43:03 UTC+4 пользователь Aaron Meurer написал:
>
> 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]<javascript:>> 
> 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] <javascript:>. 
> > To post to this group, send email to [email protected]<javascript:>. 
>
> > 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.

Reply via email to