tan(pi/2) overflow

Ian Lance Taylor iant@google.com
Sat Apr 9 00:06:00 GMT 2011


Edwin Helbert Aponte Angarita <helbert2a@gmail.com> writes:

> "Mathematically, the tangent function has singularities at odd multiples
> of pi/2. If the argument x is too close to one of these singularities,
> tan will signal overflow."

When I look at the glibc source code for tan, I don't see anything which
indicates overflow.  I think that the glibc documentation does not
reflect how the library actually behaves in this case.

Ian



More information about the Gcc-help mailing list