
Results
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
Applied egg-rr100.0%
unpow-1100.0%
Applied egg-rr100.0%
div-inv100.0%
Applied egg-rr100.0%
div-inv100.0%
Applied egg-rr100.0%
Final simplification100.0%
Initial program 100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
Applied egg-rr100.0%
unpow-1100.0%
Applied egg-rr100.0%
div-inv100.0%
Applied egg-rr100.0%
Final simplification100.0%
Initial program 100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
+-commutative100.0%
Applied egg-rr100.0%
unpow-1100.0%
Applied egg-rr100.0%
Final simplification100.0%
Initial program 100.0%
Simplified100.0%
Final simplification100.0%
if t < -0.80000000000000004Initial program 100.0%
Taylor expanded in t around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
if -0.80000000000000004 < t < 0.57999999999999996Initial program 100.0%
Taylor expanded in t around 0 99.0%
+-commutative99.0%
unpow299.0%
Simplified99.0%
if 0.57999999999999996 < t Initial program 100.0%
Taylor expanded in t around inf 100.0%
Final simplification99.2%
if t < -0.409999999999999976 or 0.57999999999999996 < t Initial program 100.0%
Taylor expanded in t around inf 98.5%
if -0.409999999999999976 < t < 0.57999999999999996Initial program 100.0%
Taylor expanded in t around 0 99.0%
+-commutative99.0%
unpow299.0%
Simplified99.0%
Final simplification98.7%
if t < -0.78000000000000003Initial program 100.0%
Taylor expanded in t around inf 98.7%
associate-*r/98.7%
metadata-eval98.7%
Simplified98.7%
if -0.78000000000000003 < t < 0.57999999999999996Initial program 100.0%
Taylor expanded in t around 0 99.0%
+-commutative99.0%
unpow299.0%
Simplified99.0%
if 0.57999999999999996 < t Initial program 100.0%
Taylor expanded in t around inf 100.0%
Final simplification99.1%
if t < -0.330000000000000016 or 1 < t Initial program 100.0%
Taylor expanded in t around inf 98.5%
if -0.330000000000000016 < t < 1Initial program 100.0%
Taylor expanded in t around 0 98.6%
Final simplification98.5%
Initial program 100.0%
Taylor expanded in t around 0 61.0%
Final simplification61.0%
herbie shell --seed 2023167
(FPCore (t)
:name "Kahan p13 Example 2"
:precision binary64
(/ (+ 1.0 (* (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))))) (+ 2.0 (* (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t)))) (- 2.0 (/ (/ 2.0 t) (+ 1.0 (/ 1.0 t))))))))