Sympy solve on interval

122 views
Skip to first unread message

Paul Royik

unread,
Apr 28, 2015, 6:42:15 AM4/28/15
to sy...@googlegroups.com
How can I solve equation on the interval?
For example sin(x)=0, 2pi<=x<=4pi

Joachim Durchholz

unread,
Apr 28, 2015, 7:04:07 AM4/28/15
to sy...@googlegroups.com
Am 28.04.2015 um 12:42 schrieb Paul Royik:
> How can I solve equation on the interval?
> For example sin(x)=0, 2pi<=x<=4pi

Apply an assumption to x.

Paul Royik

unread,
Apr 28, 2015, 7:08:09 AM4/28/15
to sy...@googlegroups.com
How?

Joachim Durchholz

unread,
Apr 28, 2015, 7:20:37 AM4/28/15
to sy...@googlegroups.com
I don't actually know; I know a bit about the internals of the
assumptions system, but not enough about the user-facing API to tell
useful specifics.

I recommend googling for

assumptions site:docs.sympy.org

Paul Royik

unread,
Apr 28, 2015, 7:28:39 AM4/28/15
to sy...@googlegroups.com
Thanks.

Aaron Meurer

unread,
Apr 28, 2015, 5:49:01 PM4/28/15
to sy...@googlegroups.com
I don't think there's a way to do it presently. Eventually, when it
supports it, you should be able to use solveset(). You will also be
able to use the assumptions, but there currently isn't a good way to
represent such assumptions (and the solve code wouldn't understand
them even if you did).

Aaron Meurer

On Tue, Apr 28, 2015 at 5:42 AM, Paul Royik <distan...@gmail.com> wrote:
> How can I solve equation on the interval?
> For example sin(x)=0, 2pi<=x<=4pi
>
> --
> 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 sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/21788fb0-710a-40be-9cbc-7370ecb3eb68%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages