Average Error: 15.5 → 0.9
Time: 10.6s
Precision: 64
Internal Precision: 128
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\frac{\sqrt[3]{\frac{1}{2}}}{\sqrt[3]{a}} \cdot \sqrt[3]{g}\]

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

    \[\sqrt[3]{\frac{g}{2 \cdot a}}\]
  2. Using strategy rm
  3. Applied div-inv15.5

    \[\leadsto \sqrt[3]{\color{blue}{g \cdot \frac{1}{2 \cdot a}}}\]
  4. Applied cbrt-prod0.9

    \[\leadsto \color{blue}{\sqrt[3]{g} \cdot \sqrt[3]{\frac{1}{2 \cdot a}}}\]
  5. Taylor expanded around 0 33.3

    \[\leadsto \sqrt[3]{g} \cdot \color{blue}{\left(\sqrt[3]{\frac{1}{2}} \cdot {\left(\frac{1}{a}\right)}^{\frac{1}{3}}\right)}\]
  6. Simplified0.9

    \[\leadsto \sqrt[3]{g} \cdot \color{blue}{\left(\sqrt[3]{\frac{1}{a}} \cdot \sqrt[3]{\frac{1}{2}}\right)}\]
  7. Using strategy rm
  8. Applied cbrt-div0.9

    \[\leadsto \sqrt[3]{g} \cdot \left(\color{blue}{\frac{\sqrt[3]{1}}{\sqrt[3]{a}}} \cdot \sqrt[3]{\frac{1}{2}}\right)\]
  9. Applied associate-*l/0.9

    \[\leadsto \sqrt[3]{g} \cdot \color{blue}{\frac{\sqrt[3]{1} \cdot \sqrt[3]{\frac{1}{2}}}{\sqrt[3]{a}}}\]
  10. Simplified0.9

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

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

Reproduce

herbie shell --seed 2019026 
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  (cbrt (/ g (* 2 a))))