clog2(3)

clog23

Base-2 logarithm of a complex number

Usage

#include <complex.h>

double complex clog2(double complex z); float complex clog2f(float complex z); long double complex clog2l(long double complex z);

Library

Math library (libm, -lm)

Overview

The call clog2(z) is equivalent to clog(z)/log(2).

The other functions perform the same task for float and long double.

Note that z close to zero will cause an overflow.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 11 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13
  12. Arch

Standards

None.

History

These function names are reserved for future use in C99.

Not yet in glibc, as at glibc 2.19.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.