
Results
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 81.6%
associate-*r/81.7%
*-commutative81.7%
+-commutative81.7%
Simplified81.7%
cos-sum99.6%
Applied egg-rr99.6%
Final simplification99.6%
Initial program 81.6%
associate-/l*81.5%
+-commutative81.5%
Simplified81.5%
associate-/r/81.6%
Applied egg-rr81.6%
cos-sum99.6%
Applied egg-rr99.5%
Final simplification99.5%
if a < -6.5 or 5.7e14 < a Initial program 62.3%
associate-/l*62.3%
+-commutative62.3%
Simplified62.3%
Taylor expanded in b around 0 62.8%
if -6.5 < a < 5.7e14Initial program 97.4%
associate-*r/97.5%
*-commutative97.5%
+-commutative97.5%
Simplified97.5%
Taylor expanded in a around 0 97.5%
expm1-log1p-u87.3%
expm1-udef50.9%
quot-tan50.9%
Applied egg-rr50.9%
expm1-def87.3%
expm1-log1p97.6%
Simplified97.6%
Final simplification81.9%
if a < -6.5Initial program 67.3%
+-commutative67.3%
Simplified67.3%
Taylor expanded in b around 0 67.4%
if -6.5 < a < 5.7e14Initial program 97.4%
associate-*r/97.5%
*-commutative97.5%
+-commutative97.5%
Simplified97.5%
Taylor expanded in a around 0 97.5%
expm1-log1p-u87.3%
expm1-udef50.9%
quot-tan50.9%
Applied egg-rr50.9%
expm1-def87.3%
expm1-log1p97.6%
Simplified97.6%
if 5.7e14 < a Initial program 55.6%
associate-/l*55.6%
+-commutative55.6%
Simplified55.6%
Taylor expanded in b around 0 56.6%
Final simplification82.0%
Initial program 81.6%
associate-/l*81.5%
+-commutative81.5%
Simplified81.5%
associate-/r/81.6%
Applied egg-rr81.6%
Final simplification81.6%
Initial program 81.6%
associate-*r/81.7%
*-commutative81.7%
+-commutative81.7%
Simplified81.7%
Final simplification81.7%
if b < -4.00000000000000033e-5 or 7.19999999999999967e-6 < b Initial program 60.5%
associate-*r/60.6%
*-commutative60.6%
+-commutative60.6%
Simplified60.6%
Taylor expanded in a around 0 60.9%
expm1-log1p-u47.5%
expm1-udef46.9%
quot-tan46.9%
Applied egg-rr46.9%
expm1-def47.5%
expm1-log1p60.9%
Simplified60.9%
if -4.00000000000000033e-5 < b < 7.19999999999999967e-6Initial program 99.1%
associate-*r/99.1%
*-commutative99.1%
+-commutative99.1%
Simplified99.1%
Taylor expanded in b around 0 99.1%
Final simplification81.8%
if b < -9.2e-6 or 5.09999999999999996e-5 < b Initial program 60.5%
associate-*r/60.6%
*-commutative60.6%
+-commutative60.6%
Simplified60.6%
Taylor expanded in a around 0 60.9%
expm1-log1p-u47.5%
expm1-udef46.9%
quot-tan46.9%
Applied egg-rr46.9%
expm1-def47.5%
expm1-log1p60.9%
Simplified60.9%
if -9.2e-6 < b < 5.09999999999999996e-5Initial program 99.1%
associate-*r/99.1%
*-commutative99.1%
+-commutative99.1%
Simplified99.1%
Taylor expanded in b around 0 99.1%
Final simplification81.8%
Initial program 81.6%
associate-*r/81.7%
*-commutative81.7%
+-commutative81.7%
Simplified81.7%
Taylor expanded in a around 0 63.3%
expm1-log1p-u57.2%
expm1-udef36.1%
quot-tan36.1%
Applied egg-rr36.1%
expm1-def57.2%
expm1-log1p63.3%
Simplified63.3%
Final simplification63.3%
Initial program 81.6%
associate-/l*81.5%
+-commutative81.5%
Simplified81.5%
Taylor expanded in b around 0 57.6%
fma-def57.6%
distribute-rgt-out--57.6%
metadata-eval57.6%
neg-mul-157.6%
+-commutative57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in a around 0 38.7%
Final simplification38.7%
Initial program 81.6%
associate-*r/81.7%
*-commutative81.7%
+-commutative81.7%
Simplified81.7%
Taylor expanded in b around 0 56.2%
Taylor expanded in a around 0 37.7%
Final simplification37.7%
herbie shell --seed 2023167
(FPCore (r a b)
:name "rsin A (should all be same)"
:precision binary64
(/ (* r (sin b)) (cos (+ a b))))