Ruby
1.9.3p429(2013-05-15revision40747)
Main Page
Modules
Data Structures
Files
File List
Globals
missing
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
12
Generated on Thu May 23 2013 20:33:10 for Ruby by
1.8.3