Re: [sage-devel] limited RealField exponents

2009-11-20 Thread Tom Boothby
""" If the user changes the exponent range, it is her/his responsibility to check that all current floating-point variables are in the new allowed range (for example using mpfr_check_range), otherwise the subsequent behavior will be undefined, in the sense of the ISO C standard. """ This looks dau

[sage-devel] limited RealField exponents

2009-11-20 Thread Jason Grout
I'm teaching numerical analysis next semester, so I'm investigating how we can use Sage's great support for specifying precision to explain some topics. I'd like to limit the exponents that a number in a RealField can have (for example, the exponent must be 0, 1, or -1. I see that mpfr suppor