Chapter Contents

Previous

Next
cbrt

cbrt



Compute the Cube Root

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <math.h>

   double cbrt(double x);
   float cbrtf(float x);
   long double cbrtl(long double x);


DESCRIPTION

The cbrt function takes the cube root of its argument x.

The function name cbrtf should be used for float arguments, and cbrtl for long double arguments. Alternately, if the header file tgmath.h is included, cbrt may be used with any numeric argument type.


RETURN VALUE

cbrt returns the cube root of its argument.


RELATED FUNCTIONS

sqrt, pow


SEE ALSO

"Mathematical Functions" in Chapter 2, "Function Categories"


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.