Average Error: 15.4 → 0.8
Time: 26.1s
Precision: 64
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\frac{\sqrt[3]{g}}{\sqrt[3]{2 \cdot a}}\]
\sqrt[3]{\frac{g}{2 \cdot a}}
\frac{\sqrt[3]{g}}{\sqrt[3]{2 \cdot a}}
double f(double g, double a) {
        double r5773541 = g;
        double r5773542 = 2.0;
        double r5773543 = a;
        double r5773544 = r5773542 * r5773543;
        double r5773545 = r5773541 / r5773544;
        double r5773546 = cbrt(r5773545);
        return r5773546;
}

double f(double g, double a) {
        double r5773547 = g;
        double r5773548 = cbrt(r5773547);
        double r5773549 = 2.0;
        double r5773550 = a;
        double r5773551 = r5773549 * r5773550;
        double r5773552 = cbrt(r5773551);
        double r5773553 = r5773548 / r5773552;
        return r5773553;
}

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 15.4

    \[\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. Using strategy rm
  5. Applied div-inv0.8

    \[\leadsto \color{blue}{\sqrt[3]{g} \cdot \frac{1}{\sqrt[3]{2 \cdot a}}}\]
  6. Using strategy rm
  7. Applied un-div-inv0.8

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

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

Reproduce

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