Sha256: f914aec16647e7da96df08b517deb638f337988522543a6c549d2d063cc23028

Contents?: true

Size: 132 Bytes

Versions: 130

Compression:

Stored size: 132 Bytes

Contents

#include <math.h>

double cbrt(double x)
{
    if (x < 0)
        return -pow(-x, 1/3.0);
    else
        return pow(x, 1/3.0);
}

Version data entries

130 entries across 130 versions & 2 rubygems

Version Path
rhodes-2.0.0.beta1 platform/shared/ruby/missing/cbrt.c
rhodes-1.5.4 platform/shared/ruby/missing/cbrt.c
rhodes-1.5.3 platform/shared/ruby/missing/cbrt.c
rhodes-1.5.2 platform/shared/ruby/missing/cbrt.c
rhodes-1.5.1 platform/shared/ruby/missing/cbrt.c
rhodes-1.5.0 platform/shared/ruby/missing/cbrt.c
rhodes-1.4.2 platform/shared/ruby/missing/cbrt.c
rhodes-1.4.1 platform/shared/ruby/missing/cbrt.c
rhodes-1.4.0 platform/shared/ruby/missing/cbrt.c
rhodes-1.2.2 platform/shared/ruby/missing/cbrt.c