Average Error: 16.2 → 0.9
Time: 3.9m
Precision: 64
Internal Precision: 384
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\sqrt[3]{g} \cdot \sqrt[3]{\frac{1}{2 \cdot a}}\]

Error

Bits error versus g

Bits error versus a

Derivation

  1. Initial program 16.2

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

    \[\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. Removed slow pow expressions.

Runtime

Time bar (total: 3.9m)Debug logProfile

herbie shell --seed '#(1063313015 2771194459 1594909340 1344785158 2223560818 546365448)' 
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  (cbrt (/ g (* 2 a))))