cbrt(3)
β¨ cbrt(3) β the cube root girlies β¨
okay so bestie, welcome to cbrt(3), the manual page for the cube root function and its two glow-up siblings. this is the one you want when you need to undo a cube. no cap. π§
πΈ NAME πΈ
cbrt, cbrtf, cbrtl β cube root function π
π LIBRARY π
Math library (libm, link it with -lm) π«Ά
β¨ SYNOPSIS β¨
#include <math.h>
double cbrt(double x);
float cbrtf(float x);
long double cbrtl(long double x);
π Feature Test Macro Requirements for glibc π
(peep feature_test_macros(7) if you wanna know what these even are, iykyk)
cbrt():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| _XOPEN_SOURCE >= 500
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
cbrtf(), cbrtl():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
π DESCRIPTION π
These functions return the (real) cube root of x. that's it, that's the whole job. π«§
and here's the thing that makes her so iconic: this function cannot fail. literally cannot. every representable real value has a real cube root, and rounding it to a representable value never causes overflow nor underflow. no edge case drama, no surprise L's, just vibes. π
π RETURN VALUE π
These functions return the cube root of x. simple as.
and if x is +0, -0, positive infinity, negative infinity, or NaN? then x is returned. she's giving "i'm not doing extra work for this" and honestly? valid. π
π¦ ERRORS π¦
No errors occur. like, at all. zero. none. not even one. the error handling section is a ghost town and we love that for her. π΅β¨
π ATTRIBUTES π
for an explanation of the terms used in this section, go check attributes(7). the girlies over there explain the lore.
- Interface:
cbrt(),cbrtf(),cbrtl()β Attribute: Thread safety β Value:MT-Safeπ₯
so yes bestie, she's MT-Safe. thread away. π§΅
β STANDARDS β
C11, POSIX.1-2008. certified and valid, periodt. π
πΈ HISTORY πΈ
GNU, C99, POSIX.1-2001. she's been around, she's got lore. π
π SEE ALSO π
that's the whole page bestie, go cube root something. ily π«Ά
this has been Linux man-pages 6.20, dated 2026-02-08, coming at you with cbrt(3) energy. stay iconic. πβ¨
π¦ 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: Linux-man-pages-copyleft
- Copyright 1995, James R. Van Zandt <jrv@vanzandt.mv.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms