#12967: comparison of pi and infinity wrong
--------------------------------------------+------------------------------
Reporter: dkrenn | Owner: burcin
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.3
Component: symbolics | Resolution:
Keywords: compare pi infinity bool | Merged in:
Authors: Travis Scrimshaw | Reviewers: Karl-Dieter
Report Upstream: N/A | Crisman
Branch: | Work issues:
Dependencies: | Commit:
| Stopgaps:
--------------------------------------------+------------------------------
Comment (by vbraun):
Also interesting:
{{{
sage: cmp(SR(oo), sqrt(2))
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
<ipython-input-7-aaaac68122b2> in <module>()
----> 1 cmp(SR(oo), sqrt(Integer(2)))
/home/vbraun/Code/sage.git/local/lib/python2.7/site-
packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression.__cmp__
(sage/symbolic/expression.cpp:16780)()
/home/vbraun/Code/sage.git/local/lib/python2.7/site-
packages/sage/structure/element.so in sage.structure.element.Element._cmp
(sage/structure/element.c:8490)()
/home/vbraun/Code/sage.git/local/lib/python2.7/site-
packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression._cmp_c_impl
(sage/symbolic/expression.cpp:16834)()
RuntimeError: comparing typeid's
}}}
Print order is broken for some combination of symbolic ex'es.
--
Ticket URL: <http://trac.sagemath.org/ticket/12967#comment:16>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.