Re: Issue in man page clog.3

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

 



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


[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