Average Error: 15.1 → 0.9
Time: 20.7s
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 r4063540 = g;
        double r4063541 = 2.0;
        double r4063542 = a;
        double r4063543 = r4063541 * r4063542;
        double r4063544 = r4063540 / r4063543;
        double r4063545 = cbrt(r4063544);
        return r4063545;
}

double f(double g, double a) {
        double r4063546 = g;
        double r4063547 = cbrt(r4063546);
        double r4063548 = 1.0;
        double r4063549 = 2.0;
        double r4063550 = a;
        double r4063551 = r4063549 * r4063550;
        double r4063552 = cbrt(r4063551);
        double r4063553 = r4063548 / r4063552;
        double r4063554 = r4063547 * r4063553;
        return r4063554;
}

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 2019152 +o rules:numerics
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  (cbrt (/ g (* 2 a))))