|
NAME | SYNOPSIS | DESCRIPTION | VERSIONS | ATTRIBUTES | CONFORMING TO | NOTES | SEE ALSO | COLOPHON |
CABS(3) Linux Programmer's Manual CABS(3)
cabs, cabsf, cabsl - absolute value of a complex number
#include <complex.h>
double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);
Link with -lm.
These functions return the absolute value of the complex number z.
The result is a real number.
These functions first appeared in glibc in version 2.1.
For an explanation of the terms used in this section, see
attributes(7).
┌─────────────────────────┬───────────────┬─────────┐
│Interface │ Attribute │ Value │
├─────────────────────────┼───────────────┼─────────┤
│cabs(), cabsf(), cabsl() │ Thread safety │ MT-Safe │
└─────────────────────────┴───────────────┴─────────┘
C99, POSIX.1-2001, POSIX.1-2008.
The function is actually an alias for hypot(a, b) (or, equivalently,
sqrt(a*a + b*b)).
abs(3), cimag(3), hypot(3), complex(7)
This page is part of release 5.08 of the Linux man-pages project. A
description of the project, information about reporting bugs, and the
latest version of this page, can be found at
https://www.kernel.org/doc/man-pages/.
2015-04-19 CABS(3)
Pages that refer to this page: abs(3) , cacosh(3) , cacoshf(3) , cacoshl(3) , carg(3) , cargf(3) , cargl(3) , casinh(3) , casinhf(3) , casinhl(3) , catanh(3) , catanhf(3) , catanhl(3) , ccos(3) , ccosf(3) , ccosh(3) , ccoshf(3) , ccoshl(3) , ccosl(3) , cexp2(3) , cexp2f(3) , cexp2l(3) , cexp(3) , cexpf(3) , cexpl(3) , cimag(3) , cimagf(3) , cimagl(3) , clog10(3) , clog10f(3) , clog10l(3) , clog2(3) , clog2f(3) , clog2l(3) , clog(3) , clogf(3) , clogl(3) , conj(3) , conjf(3) , conjl(3) , cpow(3) , cpowf(3) , cpowl(3) , cproj(3) , cprojf(3) , cprojl(3) , creal(3) , crealf(3) , creall(3) , csin(3) , csinf(3) , csinh(3) , csinhf(3) , csinhl(3) , csinl(3) , csqrt(3) , csqrtf(3) , csqrtl(3) , ctan(3) , ctanf(3) , ctanh(3) , ctanhf(3) , ctanhl(3) , ctanl(3) , fabs(3) , fabsf(3) , fabsl(3) , hypot(3) , hypotf(3) , hypotl(3) , imaxabs(3) , labs(3) , llabs(3) , complex(7)
Copyright and license for this manual page