Closed dmcclean closed 8 years ago
Oh, it's because one endpoint is positive and the other negative...
Fixed in my branch just by deleting the implementation of recip
entirely. It defaults to effectively recip x = singleton 1 / x
, which is correct. A faster implementation is probably possible.
Sounds good. Feel free to push that into mainline.
I'm not exactly sure where the problem arises. The definition looks OK to me at first glance,
recip (I a b) = on min recip a b ... on max recip a b
, but I often have difficulty understandingon
.