cbrtf, cbrtl, cbrt, cbrtd32, cbrtd64, and cbrtd128 Subroutines

Purpose

Computes the cube root.

Syntax

#include <math.h>

float cbrtf (x)
float x;

long double cbrtl (x)
long double x;

double cbrt (x)
double x;
_Decimal32 cbrtd32 (x)
_Decimal32 x;

_Decimal64 cbrtd64 (x)
_Decimal64 x;
_Decimal128 cbrtd128 (x)
_Decimal128 x;

Description

The cbrtf, cbrtl, cbrt, cbrtd32, cbrtd64, and cbrtd128 subroutines compute the real cube root of the x argument.

Parameters

Item Description
x Specifies the value to be computed.

Return Values

Upon successful completion, the cbrtf, cbrtl, cbrt, cbrtd32, cbrtd64, and cbrtd128 subroutines return the cube root of x.

If x is NaN, an NaN is returned.

If x is ±0 or ±Inf, x is returned.