| 1 |
.\" Copyright 2002, Walter Harms <[email protected]> |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: GPL-1.0-or-later |
| 5 |
.\" |
| 6 |
.TH clog2 3 2026-02-08 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
clog2, clog2f, clog2l \- base-2 logarithm of a complex number |
| 9 |
.SH LIBRARY |
| 10 |
Math library |
| 11 |
.RI ( libm ,\~ \-lm ) |
| 12 |
.SH SYNOPSIS |
| 13 |
.nf |
| 14 |
.B #include <complex.h> |
| 15 |
.P |
| 16 |
.BI "double complex clog2(double complex " z ); |
| 17 |
.BI "float complex clog2f(float complex " z ); |
| 18 |
.BI "long double complex clog2l(long double complex " z ); |
| 19 |
.fi |
| 20 |
.SH DESCRIPTION |
| 21 |
The call |
| 22 |
.I clog2(z) |
| 23 |
is equivalent to |
| 24 |
.IR clog(z)/log(2) . |
| 25 |
.P |
| 26 |
The other functions perform the same task for |
| 27 |
.I float |
| 28 |
and |
| 29 |
.IR "long double" . |
| 30 |
.P |
| 31 |
Note that |
| 32 |
.I z |
| 33 |
close to zero will cause an overflow. |
| 34 |
.SH STANDARDS |
| 35 |
None. |
| 36 |
.SH HISTORY |
| 37 |
These function names are reserved for future use in C99. |
| 38 |
.P |
| 39 |
Not yet in glibc, as at glibc 2.19. |
| 40 |
.\" But reserved in NAMESPACE. |
| 41 |
.SH SEE ALSO |
| 42 |
.BR cabs (3), |
| 43 |
.BR cexp (3), |
| 44 |
.BR clog (3), |
| 45 |
.BR clog10 (3), |
| 46 |
.BR complex (7) |