Re: tan(pi/2) overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Since pi is irrational, pi/2 is also irrational and therefore infinitely long when represented in any base. It is impossible to represent pi/2 in any floating point number format. Therefore, it's impossible to pass pi/2 into tan() and impossible to hit a singularity. You might like to feed it values that are very close to see whether you can make the result overflow.






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux