
Results
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 51.5%
Taylor expanded in x around 0 51.3%
*-un-lft-identity51.3%
log-prod51.3%
metadata-eval51.3%
associate-+r+51.3%
pow251.3%
fma-udef51.3%
*-commutative51.3%
fma-def51.3%
*-commutative51.3%
Applied egg-rr51.3%
+-lft-identity51.3%
fma-def51.3%
+-commutative51.3%
associate-+l+51.3%
log1p-def97.9%
Simplified97.9%
fma-udef97.9%
Applied egg-rr97.9%
Final simplification97.9%
Initial program 51.5%
Taylor expanded in x around 0 97.7%
fma-def97.7%
unpow297.7%
fma-def97.7%
Simplified97.7%
fma-udef97.7%
+-commutative97.7%
Applied egg-rr97.7%
fma-udef97.7%
associate-+r+97.7%
*-commutative97.7%
associate-*l*97.8%
*-commutative97.8%
*-commutative97.8%
Applied egg-rr97.8%
Final simplification97.8%
Initial program 51.5%
Taylor expanded in x around 0 51.3%
*-un-lft-identity51.3%
log-prod51.3%
metadata-eval51.3%
associate-+r+51.3%
pow251.3%
fma-udef51.3%
*-commutative51.3%
fma-def51.3%
*-commutative51.3%
Applied egg-rr51.3%
+-lft-identity51.3%
fma-def51.3%
+-commutative51.3%
associate-+l+51.3%
log1p-def97.9%
Simplified97.9%
fma-udef97.9%
Applied egg-rr97.9%
Taylor expanded in x around 0 97.6%
Final simplification97.6%
Initial program 51.5%
Taylor expanded in x around 0 97.7%
fma-def97.7%
unpow297.7%
fma-def97.7%
Simplified97.7%
fma-udef97.7%
+-commutative97.7%
Applied egg-rr97.7%
Taylor expanded in x around 0 97.3%
unpow297.3%
*-commutative97.3%
*-commutative97.3%
associate-*r*97.3%
fma-def97.3%
Simplified97.3%
Final simplification97.3%
Initial program 51.5%
Taylor expanded in x around 0 97.3%
fma-def97.3%
unpow297.3%
Simplified97.3%
fma-udef97.3%
Applied egg-rr97.3%
Final simplification97.3%
Initial program 51.5%
Taylor expanded in x around 0 97.0%
unpow297.0%
Simplified97.0%
Final simplification97.0%
Initial program 51.5%
Taylor expanded in x around 0 97.0%
unpow297.0%
Simplified97.0%
pow297.0%
add-sqr-sqrt96.8%
sqrt-unprod72.9%
pow272.9%
*-commutative72.9%
pow272.9%
*-commutative72.9%
swap-sqr72.9%
pow272.9%
pow272.9%
pow-sqr72.9%
metadata-eval72.9%
metadata-eval72.9%
Applied egg-rr72.9%
*-commutative72.9%
metadata-eval72.9%
sqr-pow72.9%
metadata-eval72.9%
pow272.9%
metadata-eval72.9%
pow272.9%
swap-sqr72.9%
sqrt-unprod96.8%
add-sqr-sqrt97.0%
associate-*r*97.1%
Applied egg-rr97.1%
Final simplification97.1%
herbie shell --seed 2023167
(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)))