Thread Links | Date Links | ||||
---|---|---|---|---|---|
Thread Prev | Thread Next | Thread Index | Date Prev | Date Next | Date Index |
RF> set_rounding_mode(negative_infinity)
. . . On 3/7/2013 8:52 PM, Michel Hack wrote:
If the sign of the error is known -- and it can be known when directed rounding is used appropriately -- then this is perfectly ok. support directed rounding in any convenient or portable fashion and so few mathematical libraries use them. And if they were used, it would be in internal forms to achieve a final result which was correctly rounded to nearest. That is, something like: set_rounding_mode(negative_infinity) y:=sin(x) is not the kind of thing supported anyplace I know of, to get a lower bound on sin(x). Perhaps you know of such a system? I suspect that most subroutines assume the rounding mode is set to nearest. If it is not, they get some answer, possibly not the right answer. After all, a negative number rounded would be reversed in direction.... Or perhaps some system routines set the rounding mode, thereby ignoring any prior specification. Or the rounding mode is reset in some context switch in the operating system and the user has no real control of it, anyway. . . . |