cabs(3)
β¨ cabs β bestie edition β¨
okay so real talk, welcome to cabs(3), the manual page for cabs, cabsf, and cabsl β aka absolute value of a complex number. yes the whole squad is here π
π«Ά NAME
cabs, cabsf, cabsl β absolute value of a complex number. that's it, that's the job. iconic behavior honestly.
π LIBRARY
Math library (libm, -lm). so like, you gotta link that bad boy in or nothing happens, no cap π₯
πΈ SYNOPSIS
#include <complex.h>
double cabs(double complex z);
float cabsf(float complex z);
long double cabsl(long double complex z);
three sisters, three return types, one vibe π
π DESCRIPTION
These functions return the absolute value of the complex number z. The result is a real number.
likeβ¦ you feed it a complex number and it hands you back a plain real one. glow-up moment π¦
π ATTRIBUTES
okay so for the whole explanation of what these terms even mean, go peek at attributes(7). putting the table here as bullets because we're cute like that:
- Interface:
cabs(),cabsf(),cabsl() - Attribute: Thread safety
- Value:
MT-Safe
translation: thread-safe besties, you're free to run wild, periodt π
β STANDARDS
C11, POSIX.1-2008. certified, standards-approved, no notes π
π HISTORY
glibc 2.1. C99, POSIX.1-2001.
so she's been around a minute. a legend from day one fr fr π
π§ NOTES
The function is actually an alias for hypot(a, b) (or, equivalently, sqrt(a*a + b*b)).
not me finding outcabsis literally justhypotin a trench coat π keep that in your pocket, it's giving iykyk
π SEE ALSO
and that's the whole page bestie, literally ate and left no crumbs π
this was Linux man-pages 6.20, dated 2026-02-08 β catch you in the group chat, mwah π«Άβ¨
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: GPL-1.0-or-later
- Copyright 2002, Walter Harms <walter.harms@informatik.uni-oldenburg.de>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms