"Michael Kerrisk" <[EMAIL PROTECTED]> writes:
>
> Does the clog2() man page have the same problem?
Yes I think so.
Does that function exist in the library at the moment though? Trying
gcc clog2.c -lm
on the file below gives
/tmp/ccHc7oB9.o: In function `main':
clog2.c:(.text+0x31): undefined reference to `clog2'
collect2: ld returned 1 exit status
#define _GNU_SOURCE
#include <complex.h>
#include <math.h>
#include <stdio.h>
int
main (void)
{
complex double z = 2.0 + _Complex_I * 3.0;
z = clog2 (z);
printf ("%lg %lg\n", creal(z), cimag(z));
return 0;
}