C examples for math.h:cbrt
function
<cmath> <ctgmath> <math.h>
Compute cubic root
long double cbrtl (long double x); long double cbrt (long double x); double cbrt (double x); float cbrtf (float x); float cbrt (float x); double cbrt (T x);
Parameter | Description |
---|---|
x | Value whose cubit root is computed. |
Cubic root of x.
#include <stdio.h> #include <math.h> /* cbrt */ int main ()//from www. jav a 2 s . c o m { double param = 27.0; double result = cbrt (param); printf ("cbrt (%f) = %f\n", param, result); return 0; }