#12121: floor/ceil can be very slow at integral values
------------------------------------+----------------------------
Reporter: dsm | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+----------------------------
Comment (by vdelecroix):
Replying to [comment:9 zimmerma]:
> I'm not sure if this should go to this ticket, but the following never
returns:
> {{{
> sage: z
> (11/9*sqrt(3)*sqrt(2) + 3)^(1/3) + 1/3/(11/9*sqrt(3)*sqrt(2) + 3)^(1/3)
- 1
> sage: floor(z)
> }}}
> Even {{{floor(z, maximum_bits=53)}}} loops infinitely.
Whereas the following actually works
{{{
sage: bool(z == 1)
True
}}}
> Should I open a separate ticket?
I think that "very slow" includes "infinite amount of time". For me it is
worth it to also fix this kind of endless loops in this ticket.
--
Ticket URL: <http://trac.sagemath.org/ticket/12121#comment:13>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.