Average Error: 14.8 → 0.8
Time: 13.6s
Precision: 64
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\frac{\sqrt[3]{g}}{\sqrt[3]{a \cdot 2}}\]
\sqrt[3]{\frac{g}{2 \cdot a}}
\frac{\sqrt[3]{g}}{\sqrt[3]{a \cdot 2}}
double f(double g, double a) {
        double r180483 = g;
        double r180484 = 2.0;
        double r180485 = a;
        double r180486 = r180484 * r180485;
        double r180487 = r180483 / r180486;
        double r180488 = cbrt(r180487);
        return r180488;
}

double f(double g, double a) {
        double r180489 = g;
        double r180490 = cbrt(r180489);
        double r180491 = a;
        double r180492 = 2.0;
        double r180493 = r180491 * r180492;
        double r180494 = cbrt(r180493);
        double r180495 = r180490 / r180494;
        return r180495;
}

Error

Bits error versus g

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 14.8

    \[\sqrt[3]{\frac{g}{2 \cdot a}}\]
  2. Using strategy rm
  3. Applied cbrt-div0.8

    \[\leadsto \color{blue}{\frac{\sqrt[3]{g}}{\sqrt[3]{2 \cdot a}}}\]
  4. Simplified0.8

    \[\leadsto \frac{\sqrt[3]{g}}{\color{blue}{\sqrt[3]{a \cdot 2}}}\]
  5. Final simplification0.8

    \[\leadsto \frac{\sqrt[3]{g}}{\sqrt[3]{a \cdot 2}}\]

Reproduce

herbie shell --seed 2019194 +o rules:numerics
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  (cbrt (/ g (* 2.0 a))))