
Results
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
if b_2 < -4.4000000000000001e101Initial program 57.6%
+-commutative57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in b_2 around -inf 91.5%
if -4.4000000000000001e101 < b_2 < 1.95000000000000005e-129Initial program 79.9%
+-commutative79.9%
unsub-neg79.9%
Simplified79.9%
if 1.95000000000000005e-129 < b_2 < 1.46e-72 or 1.1e-21 < b_2 Initial program 13.8%
+-commutative13.8%
unsub-neg13.8%
Simplified13.8%
Taylor expanded in b_2 around inf 94.4%
if 1.46e-72 < b_2 < 1.1e-21Initial program 70.5%
+-commutative70.5%
unsub-neg70.5%
Simplified70.5%
add-cbrt-cube62.1%
pow362.3%
pow1/357.5%
sqrt-pow257.5%
fma-neg57.5%
*-commutative57.5%
distribute-rgt-neg-in57.5%
metadata-eval57.5%
Applied egg-rr57.5%
unpow1/362.3%
distribute-rgt-neg-out62.3%
*-commutative62.3%
fma-neg62.1%
*-commutative62.1%
Simplified62.1%
flip--61.8%
cbrt-unprod32.5%
pow-prod-up33.9%
metadata-eval33.9%
pow333.9%
add-cbrt-cube60.9%
pow1/357.0%
pow-pow70.8%
metadata-eval70.8%
pow1/270.8%
Applied egg-rr70.8%
Taylor expanded in b_2 around 0 99.2%
associate-*r*99.2%
neg-mul-199.2%
Simplified99.2%
Final simplification88.8%
if b_2 < -6.99999999999999953e100Initial program 57.6%
+-commutative57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in b_2 around -inf 91.5%
if -6.99999999999999953e100 < b_2 < 1.95000000000000005e-129Initial program 79.9%
+-commutative79.9%
unsub-neg79.9%
Simplified79.9%
if 1.95000000000000005e-129 < b_2 < 3.3999999999999998e-72 or 1.35e-40 < b_2 Initial program 14.3%
+-commutative14.3%
unsub-neg14.3%
Simplified14.3%
Taylor expanded in b_2 around inf 93.7%
if 3.3999999999999998e-72 < b_2 < 1.35e-40Initial program 99.0%
+-commutative99.0%
unsub-neg99.0%
Simplified99.0%
add-cbrt-cube83.1%
pow383.1%
pow1/378.0%
sqrt-pow278.0%
fma-neg78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
metadata-eval78.0%
Applied egg-rr78.0%
unpow1/383.1%
distribute-rgt-neg-out83.1%
*-commutative83.1%
fma-neg83.1%
*-commutative83.1%
Simplified83.1%
clear-num83.1%
inv-pow83.1%
pow1/378.0%
pow-pow99.0%
metadata-eval99.0%
pow1/299.0%
Applied egg-rr99.0%
unpow-199.0%
Simplified99.0%
div-inv99.2%
Applied egg-rr99.2%
Final simplification88.5%
if b_2 < -7.9000000000000001e37Initial program 63.3%
+-commutative63.3%
unsub-neg63.3%
Simplified63.3%
Taylor expanded in b_2 around -inf 90.2%
if -7.9000000000000001e37 < b_2 < 1.95000000000000005e-129 or 2.1000000000000001e-71 < b_2 < 1.22e-40Initial program 79.8%
+-commutative79.8%
unsub-neg79.8%
Simplified79.8%
Taylor expanded in b_2 around 0 73.0%
mul-1-neg73.0%
distribute-rgt-neg-out73.0%
Simplified73.0%
if 1.95000000000000005e-129 < b_2 < 2.1000000000000001e-71 or 1.22e-40 < b_2 Initial program 14.3%
+-commutative14.3%
unsub-neg14.3%
Simplified14.3%
Taylor expanded in b_2 around inf 93.7%
Final simplification85.8%
if b_2 < -1.55e101Initial program 57.6%
+-commutative57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in b_2 around -inf 91.5%
if -1.55e101 < b_2 < 1.95000000000000005e-129Initial program 79.9%
+-commutative79.9%
unsub-neg79.9%
Simplified79.9%
if 1.95000000000000005e-129 < b_2 < 3.3999999999999998e-72 or 1.22e-40 < b_2 Initial program 14.3%
+-commutative14.3%
unsub-neg14.3%
Simplified14.3%
Taylor expanded in b_2 around inf 93.7%
if 3.3999999999999998e-72 < b_2 < 1.22e-40Initial program 99.0%
+-commutative99.0%
unsub-neg99.0%
Simplified99.0%
Taylor expanded in b_2 around 0 99.0%
mul-1-neg99.0%
distribute-rgt-neg-out99.0%
Simplified99.0%
Final simplification88.5%
if b_2 < -4.999999999999985e-310Initial program 68.5%
+-commutative68.5%
unsub-neg68.5%
Simplified68.5%
Taylor expanded in b_2 around -inf 64.5%
if -4.999999999999985e-310 < b_2 Initial program 34.0%
+-commutative34.0%
unsub-neg34.0%
Simplified34.0%
Taylor expanded in b_2 around inf 68.3%
Final simplification66.7%
if b_2 < 8.2000000000000005e-305Initial program 69.1%
+-commutative69.1%
unsub-neg69.1%
Simplified69.1%
Taylor expanded in b_2 around 0 41.5%
mul-1-neg41.5%
distribute-rgt-neg-out41.5%
Simplified41.5%
Taylor expanded in c around 0 28.3%
associate-*r/28.3%
neg-mul-128.3%
Simplified28.3%
if 8.2000000000000005e-305 < b_2 Initial program 33.1%
+-commutative33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in b_2 around inf 69.2%
Final simplification51.4%
if b_2 < 8.2000000000000005e-305Initial program 69.1%
+-commutative69.1%
unsub-neg69.1%
Simplified69.1%
add-cbrt-cube53.7%
pow353.6%
pow1/351.5%
sqrt-pow251.5%
fma-neg51.5%
*-commutative51.5%
distribute-rgt-neg-in51.5%
metadata-eval51.5%
Applied egg-rr51.5%
unpow1/353.6%
distribute-rgt-neg-out53.6%
*-commutative53.6%
fma-neg53.6%
*-commutative53.6%
Simplified53.6%
Taylor expanded in b_2 around -inf 63.2%
metadata-eval63.2%
times-frac63.2%
*-commutative63.2%
times-frac63.0%
/-rgt-identity63.0%
Simplified63.0%
if 8.2000000000000005e-305 < b_2 Initial program 33.1%
+-commutative33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in b_2 around inf 69.2%
Final simplification66.5%
if b_2 < 8.2000000000000005e-305Initial program 69.1%
+-commutative69.1%
unsub-neg69.1%
Simplified69.1%
Taylor expanded in b_2 around -inf 63.2%
*-commutative63.2%
Simplified63.2%
if 8.2000000000000005e-305 < b_2 Initial program 33.1%
+-commutative33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in b_2 around inf 69.2%
Final simplification66.6%
Initial program 48.7%
+-commutative48.7%
unsub-neg48.7%
Simplified48.7%
Taylor expanded in b_2 around 0 33.3%
mul-1-neg33.3%
distribute-rgt-neg-out33.3%
Simplified33.3%
Taylor expanded in c around 0 13.9%
associate-*r/13.9%
neg-mul-113.9%
Simplified13.9%
Final simplification13.9%
herbie shell --seed 2023166
(FPCore (a b_2 c)
:name "quad2p (problem 3.2.1, positive)"
:precision binary64
(/ (+ (- b_2) (sqrt (- (* b_2 b_2) (* a c)))) a))