
Results
Herbie found 5 alternatives:
| Alternative | Accuracy | Speedup |
|---|
| Original | 81.8% |
|---|---|
| Target | 99.9% |
| Herbie | 99.8% |
Initial program 79.1%
sub-neg79.1%
associate-/l*87.6%
*-commutative87.6%
associate-/l*87.6%
distribute-neg-frac87.6%
metadata-eval87.6%
associate-/l/79.0%
div-sub71.5%
times-frac87.4%
*-inverses87.4%
*-rgt-identity87.4%
*-commutative87.4%
associate-*l/87.4%
*-commutative87.4%
times-frac99.9%
*-inverses99.9%
*-lft-identity99.9%
Simplified99.9%
Final simplification99.9%
if z < -8.4e-7 or 0.044999999999999998 < z Initial program 72.8%
sub-neg72.8%
associate-/l*87.1%
distribute-neg-frac87.1%
associate-/r/87.1%
distribute-rgt-neg-in87.1%
metadata-eval87.1%
associate-*l*87.1%
Simplified87.1%
Taylor expanded in y around 0 92.8%
+-commutative92.8%
mul-1-neg92.8%
sub-neg92.8%
Simplified92.8%
if -8.4e-7 < z < 0.044999999999999998Initial program 85.9%
sub-neg85.9%
associate-/l*88.2%
distribute-neg-frac88.2%
associate-/r/88.9%
distribute-rgt-neg-in88.9%
metadata-eval88.9%
associate-*l*88.9%
Simplified88.9%
Taylor expanded in y around inf 92.0%
Final simplification92.4%
if z < -1.1399999999999999e-10 or 2.09999999999999989e-13 < z Initial program 72.8%
sub-neg72.8%
associate-/l*87.1%
distribute-neg-frac87.1%
associate-/r/87.1%
distribute-rgt-neg-in87.1%
metadata-eval87.1%
associate-*l*87.1%
Simplified87.1%
Taylor expanded in y around 0 92.8%
+-commutative92.8%
mul-1-neg92.8%
sub-neg92.8%
Simplified92.8%
if -1.1399999999999999e-10 < z < 2.09999999999999989e-13Initial program 85.9%
*-commutative85.9%
associate-/l*89.0%
div-sub89.0%
sub-neg89.0%
*-commutative89.0%
associate-*l*89.0%
*-commutative89.0%
times-frac89.0%
metadata-eval89.0%
*-lft-identity89.0%
associate-*r/93.9%
fma-def93.9%
associate-/r*93.9%
distribute-neg-frac93.9%
*-commutative93.9%
associate-/l*100.0%
*-inverses100.0%
/-rgt-identity100.0%
Simplified100.0%
Taylor expanded in z around 0 92.1%
Final simplification92.5%
if z < -3.45e6 or 0.94999999999999996 < z Initial program 71.8%
sub-neg71.8%
associate-/l*86.6%
distribute-neg-frac86.6%
associate-/r/86.6%
distribute-rgt-neg-in86.6%
metadata-eval86.6%
associate-*l*86.6%
Simplified86.6%
Taylor expanded in y around 0 93.2%
+-commutative93.2%
mul-1-neg93.2%
sub-neg93.2%
Simplified93.2%
if -3.45e6 < z < 0.94999999999999996Initial program 86.4%
sub-neg86.4%
associate-/l*88.6%
distribute-neg-frac88.6%
associate-/r/89.3%
distribute-rgt-neg-in89.3%
metadata-eval89.3%
associate-*l*89.3%
Simplified89.3%
Taylor expanded in x around inf 71.9%
Final simplification82.7%
Initial program 79.1%
sub-neg79.1%
associate-/l*87.6%
distribute-neg-frac87.6%
associate-/r/88.0%
distribute-rgt-neg-in88.0%
metadata-eval88.0%
associate-*l*88.0%
Simplified88.0%
Taylor expanded in x around inf 74.5%
Final simplification74.5%
herbie shell --seed 2023166
(FPCore (x y z t)
:name "Numeric.AD.Rank1.Halley:findZero from ad-4.2.4"
:precision binary64
:herbie-target
(- x (/ 1.0 (- (/ z y) (/ (/ t 2.0) z))))
(- x (/ (* (* y 2.0) z) (- (* (* z 2.0) z) (* y t)))))