Average Error: 15.1 → 0.9
Time: 14.9s
Precision: 64
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\sqrt[3]{g} \cdot \frac{1}{\sqrt[3]{2 \cdot a}}\]
\sqrt[3]{\frac{g}{2 \cdot a}}
\sqrt[3]{g} \cdot \frac{1}{\sqrt[3]{2 \cdot a}}
double f(double g, double a) {
        double r5191436 = g;
        double r5191437 = 2.0;
        double r5191438 = a;
        double r5191439 = r5191437 * r5191438;
        double r5191440 = r5191436 / r5191439;
        double r5191441 = cbrt(r5191440);
        return r5191441;
}

double f(double g, double a) {
        double r5191442 = g;
        double r5191443 = cbrt(r5191442);
        double r5191444 = 1.0;
        double r5191445 = 2.0;
        double r5191446 = a;
        double r5191447 = r5191445 * r5191446;
        double r5191448 = cbrt(r5191447);
        double r5191449 = r5191444 / r5191448;
        double r5191450 = r5191443 * r5191449;
        return r5191450;
}

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.1

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

    \[\leadsto \color{blue}{\frac{\sqrt[3]{g}}{\sqrt[3]{2 \cdot a}}}\]
  4. Using strategy rm
  5. Applied div-inv0.9

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

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

Reproduce

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