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-5.5.18 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.17 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.15 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.0.22 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.2 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.0.7 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.0.3 platform/shared/ruby/missing/cbrt.c
rhodes-5.5.0 platform/shared/ruby/missing/cbrt.c
tauplatform-1.0.3 platform/shared/ruby/missing/cbrt.c
tauplatform-1.0.2 platform/shared/ruby/missing/cbrt.c
tauplatform-1.0.1 platform/shared/ruby/missing/cbrt.c
rhodes-3.5.1.12 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.5 platform/shared/ruby/missing/cbrt.c
rhodes-3.4.2 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.4 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.3 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.3.beta.4 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.3.beta.3 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.3.beta.2 platform/shared/ruby/missing/cbrt.c
rhodes-3.3.3.beta.1 platform/shared/ruby/missing/cbrt.c