
Results
Herbie found 5 alternatives:
| Alternative | Accuracy | Speedup |
|---|
| Original | 52.9% |
|---|---|
| Target | 97.8% |
| Herbie | 97.0% |
Initial program 52.3%
Taylor expanded in x around 0 99.3%
pow299.3%
add-sqr-sqrt99.1%
pow299.1%
*-commutative99.1%
sqrt-prod99.2%
sqrt-prod53.9%
add-sqr-sqrt99.2%
Applied egg-rr99.2%
unpow299.2%
swap-sqr99.3%
add-sqr-sqrt99.3%
Applied egg-rr99.3%
Final simplification99.3%
Initial program 52.3%
Taylor expanded in x around 0 99.2%
+-commutative99.2%
fma-def99.2%
unpow299.2%
Simplified99.2%
fma-udef99.2%
+-commutative99.2%
Applied egg-rr99.2%
Final simplification99.2%
Initial program 52.3%
Taylor expanded in x around 0 99.2%
+-commutative99.2%
fma-def99.2%
unpow299.2%
Simplified99.2%
add-cube-cbrt98.4%
pow398.3%
Applied egg-rr98.3%
rem-cube-cbrt99.2%
fma-udef99.2%
+-commutative99.2%
*-commutative99.2%
associate-*r*99.2%
Applied egg-rr99.2%
Final simplification99.2%
Initial program 52.3%
Taylor expanded in x around 0 98.8%
unpow298.8%
Simplified98.8%
Final simplification98.8%
Initial program 52.3%
Taylor expanded in x around 0 98.8%
unpow298.8%
Simplified98.8%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
unpow298.8%
associate-*l*98.8%
Simplified98.8%
Final simplification98.8%
herbie shell --seed 2023166
(FPCore (x)
:name "bug500, discussion (missed optimization)"
:precision binary64
:herbie-target
(if (< (fabs x) 0.085) (* (* x x) (fma (fma (fma -2.6455026455026456e-5 (* x x) 0.0003527336860670194) (* x x) -0.005555555555555556) (* x x) 0.16666666666666666)) (log (/ (sinh x) x)))
(log (/ (sinh x) x)))