* include/ruby/encoding.h (rb_econv_check_error): declared.
[ruby-svn.git] / missing / cbrt.c
blob54db2703a0844dceb1fe36fecaae9c9daaa8c56c
1 #include <math.h>
3 double cbrt(double x)
5 if (x < 0)
6 return -pow(-x, 1/3.0);
7 else
8 return pow(x, 1/3.0);