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.
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.