Open ekmett opened 10 years ago
Instead of this, with swapped b's and a's?
| iz = divPositive x a
| sz = divNegative x b
Could be. I have a bad sinus problem that is making it hard to think. :)
Accordingly, this may be wrong, but couldn't
| iz && sz = whole -- instead of Exception.throw DivideByZero
I tripped over that while starting to adapt the interval logic to work in rounded.
Having the result of dividing by zero be everything is rather non-standard. We may want to adopt the practices of something like the boost interval arithmetic library where division by zero is concerned.
This came up when writing
Numeric.Rounded.Interval
inrounded
.The right definition probably looks like: