#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:
--------------------------------------------+------------------------------
Changes (by pbruin):
* status: needs_info => needs_work
Comment:
Replying to [comment:9 ppurka]:
> This is absurd. Why should `bool(pi < oo)` return `False`? If we have
symbolic ''constants'', then we should be able to coerce them to some
ring, possibly RR, and do the comparison.
I agree. This comparison is apparently done by Pynac. Using Maxima gives
the correct result:
{{{
sage: e = (SR(pi) < SR(Infinity)); e
pi < +Infinity
sage: bool(e)
False
sage: maxima(e)
%pi<inf
sage: bool(maxima(e))
True
}}}
(This is not fixed by #11506, by the way.)
--
Ticket URL: <http://trac.sagemath.org/ticket/12967#comment:14>
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.