This looks like a bug. Numerical values should be evaluated in inequalities.
Aaron Meurer On Thu, Jul 9, 2015 at 5:23 PM, Paul Royik <distantjob...@gmail.com> wrote: > And another one: > > File "/home/mysite/lib/python2.7/sympy/core/relational.py", line 103, in > __nonzero__ > raise TypeError("cannot determine truth value of\n%s" % self) > > TypeError: cannot determine truth value of > 3*pi/8 >= 7*pi/8 > > > On Friday, July 10, 2015 at 1:12:06 AM UTC+3, Paul Royik wrote: >> >> Traceback is quite short: >> >> File "/home/mysite/lib/python2.7/sympy/core/relational.py", line 103, in >> __nonzero__ >> raise TypeError("cannot determine truth value of\n%s" % self) >> >> TypeError: cannot determine truth value of >> pi/5 < 0 >> >> On Thursday, July 9, 2015 at 10:26:53 PM UTC+3, Aaron Meurer wrote: >>> >>> Is there a traceback with the error? Is it coming from SymPy code or >>> your own code? >>> >>> Aaron Meurer >>> >>> On Thu, Jul 9, 2015 at 12:40 AM, Paul Royik <distan...@gmail.com> wrote: >>> > I'm using sympy on my site together with django and mod_wsgi. >>> > From time to time (i.e. this error is not reproducible) I've got the >>> > following error: >>> > TypeError: cannot determine truth value of >>> > 3*pi/8 >= 7*pi/8 >>> > >>> > In other words, error is raised when I try to compare numerical values. >>> > Can someone explain why is that and how can I avoid it? >>> > >>> > Thank you. >>> > >>> > -- >>> > 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/8997bc44-a5d5-42d8-b818-32bc5c0153b8%40googlegroups.com. >>> > For more options, visit https://groups.google.com/d/optout. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@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/f1d7e20f-1c53-411d-a9eb-1e56a5246cc2%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sympy@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/CAKgW%3D6KPdq9woB3wxBTP1_H9ZhfP2jS6hasfj5W5fWbZymgFHg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.