On Wed, Nov 01, 2023 at 05:15:00PM +0100, Jakub Wilk wrote: > * Helge Kreutzmann <debian@xxxxxxxxxxxxx>, 2023-11-01 14:02: > > Issue: [-pi,pi] means both -pi and pi are included, this does not make sense, either one must be out of the interval? > > The man page is consistent with the C standard, which says the return value > is "in the interval [−iπ, +iπ] along the imaginary axis". > > I think they mean π rounded to the nearest representable value. > And indeed, the imaginary part of clog(-1 - DBL_EPSILON * I) is -M_PI, and > the imaginary part of clog(-1 + DBL_EPSILON * I) is +M_PI. Ahh, thanks a lot, Jakub! > > -- > Jakub Wilk -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature