#18896: symbolic root comparisons call Maxima unnecessarily
-----------------------------+------------------------
       Reporter:  rws        |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.8
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------
Description changed by rws:

Old description:

> Reported in https://groups.google.com/forum/?hl=en#!topic/sage-
> support/b6OinTC9mdk
> {{{
> sage: m=540579833922455191419978421211010409605356811833049025*sqrt(1/2)
> sage: m1=382247666339265723780973363167714496025733124557617743
> sage: bool(m==m1)
> True
> }}}
> Like #18883 is another case of falling through in
> `Expression.__nonzero__` to calling Maxima which fails, in this case
> because of its hardcoded 53 bits precision.

New description:

 Reported in https://groups.google.com/forum/?hl=en#!topic/sage-
 support/b6OinTC9mdk
 {{{
 sage: m=540579833922455191419978421211010409605356811833049025*sqrt(1/2)
 sage: m1=382247666339265723780973363167714496025733124557617743
 sage: bool(m==m1)
 True
 }}}
 Like #18883 is another case of falling through in `Expression.__nonzero__`
 to calling Maxima which fails, in this case because of its hardcoded 53
 bits precision. The reason why Maxima is called at all is that
 `test_relation()` coerces `lhs()-rhs()` into `CIF` as a catch-all. The
 result passes `is_zero()` so `NotImplemented` is returned.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18896#comment:1>
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.

Reply via email to