Re: Issue in man page clog.3

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

 



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

--
Jakub Wilk



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux