The following crashes sage 2.5.0.2!

sage: floor(RR(+infinity))
get_z.c:35:  assertion failed: (!(((r)->_mpfr_exp) == (((-2147483647L
- 1L))+2)) && !(((r)->_mpfr_exp) == (((-2147483647L - 1L))+3)))
//usr/local/sage/local/bin/sage-sage: line 167: 18419
Aborted                 sage-ipython -c "$SAGE_STARTUP_COMMAND;" "$@"

There are variants with ceil instead of floor and -infinity and NaN
instead of +infinity.
I assume the solution is not calling mpfr_floor and mpfr_ceil with an
infinite or NaN value.

Michel


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to