cbrtl3
Cube root, square root, and inverse square root functions
Part of cbrt(3).
Usage
double
float
long double
double
float
long double
double
float
long double
Library
Math Library (libm, -lm)
Overview
The cbrt(), cbrtf(), and cbrtl() functions compute the cube root of x.
The rsqrt(), rsqrtf(), and rsqrtl() functions compute the inverse square root of x.
The sqrt(), sqrtf(), and sqrtl() functions compute the non-negative square root of x.
Return values
The cbrt(), cbrtf(), and cbrtl() functions return the requested cube root.
The rsqrt(), rsqrtf(), and rsqrtl() functions return 1 divided by the square root of x unless an error occurs. An attempt to take the rsqrt() of negative x raises an invalid exception and causes an to be returned. The inverse square root of 0 returns ∞ and raises a divide-by-zero exception.
The sqrt(), sqrtf(), and sqrtl() functions return the requested square root unless an error occurs. An attempt to take the sqrt() of negative x raises an invalid exception and causes an to be returned (except that the square root of -0 is valid and equal to -0.)
History
- FreeBSD 16.0-CURRENT (2026-10-27): the text shown here
- FreeBSD 15.1-RELEASE to FreeBSD 15.0-RELEASE
- FreeBSD 14.5-RELEASE
- FreeBSD 14.4-RELEASE to FreeBSD 13.3-RELEASE
- FreeBSD 13.2-RELEASE to FreeBSD 13.1-RELEASE
- FreeBSD 13.0-RELEASE
- FreeBSD 12.4-RELEASE
- FreeBSD 12.3-RELEASE
- FreeBSD 12.2-RELEASE
- FreeBSD 12.1-RELEASE
- FreeBSD 12.0-RELEASE
- FreeBSD 11.4-RELEASE
- FreeBSD 11.3-RELEASE
- FreeBSD 11.2-RELEASE
- FreeBSD 11.1-RELEASE
- FreeBSD 11.0-RELEASE
- FreeBSD 10.4-RELEASE
- FreeBSD 10.3-RELEASE
- FreeBSD 10.2-RELEASE
- FreeBSD 10.1-RELEASE
- FreeBSD 10.0-RELEASE
- FreeBSD 9.3-RELEASE
- FreeBSD 9.2-RELEASE
- FreeBSD 9.1-RELEASE
- FreeBSD 9.0-RELEASE