flintlib / arb

Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
http://arblib.org/
GNU Lesser General Public License v2.1
455 stars 137 forks source link

Treat infinite inputs more carefully. #334

Closed p15-git-acc closed 3 years ago

p15-git-acc commented 3 years ago

With these changes, the functions mentioned in https://github.com/fredrik-johansson/arb/issues/306 now pay closer attention to infinite inputs. I didn't make all of the requested changes though. For example I still have tan_pi(1/2) = NaN because the limit is +inf or -inf depending on whether it's approached from the positive or negative direction. I don't know if that's how it should work or not.

fredrik-johansson commented 3 years ago

Thanks. This seems reasonable.