Ruby  2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
cbrt.c
Go to the documentation of this file.
1 #include "ruby/missing.h"
2 #include <math.h>
3 
4 double cbrt(double x)
5 {
6  if (x < 0)
7  return -pow(-x, 1/3.0);
8  else
9  return pow(x, 1/3.0);
10 }
11 
pow
double pow(double, double)
cbrt
double cbrt(double x)
Definition: cbrt.c:4
missing.h