Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# missing/cbrt.c

Go to the documentation of this file.

    00001 #include <math.h>
    00002
    00003 double cbrt(double x)
    00004 {
    00005     if (x < 0)
    00006         return -pow(-x, 1/3.0);
    00007     else
    00008         return pow(x, 1/3.0);
    00009 }
    00010
    00011