
Results
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
Final simplification99.8%
if x < -3.2e8 or 9.5e9 < x Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
tan-quot99.6%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 99.7%
mul-1-neg99.7%
*-commutative99.7%
associate-*r/99.6%
distribute-lft-neg-in99.6%
Simplified99.6%
if -3.2e8 < x < 9.5e9Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.7%
*-rgt-identity99.7%
Simplified99.7%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in B around inf 99.7%
*-commutative99.7%
div-sub99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in B around 0 98.6%
Final simplification99.1%
if x < -2.4e7Initial program 99.6%
+-commutative99.6%
unsub-neg99.6%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
tan-quot99.6%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in B around inf 99.8%
*-commutative99.8%
div-sub99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
mul-1-neg99.8%
associate-/l*99.7%
*-lft-identity99.7%
associate-*l/99.6%
*-commutative99.6%
distribute-neg-frac99.6%
*-commutative99.6%
associate-*l/99.7%
*-lft-identity99.7%
Simplified99.7%
if -2.4e7 < x < 7.3e9Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.7%
*-rgt-identity99.7%
Simplified99.7%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in B around inf 99.7%
*-commutative99.7%
div-sub99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in B around 0 98.6%
if 7.3e9 < x Initial program 99.8%
+-commutative99.8%
unsub-neg99.8%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 99.7%
mul-1-neg99.7%
*-commutative99.7%
associate-*r/99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Final simplification99.1%
if x < -1.35e9Initial program 99.6%
+-commutative99.6%
unsub-neg99.6%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
tan-quot99.6%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in B around inf 99.8%
*-commutative99.8%
div-sub99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
mul-1-neg99.8%
distribute-rgt-neg-out99.8%
Simplified99.8%
if -1.35e9 < x < 4e10Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.7%
*-rgt-identity99.7%
Simplified99.7%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in B around inf 99.7%
*-commutative99.7%
div-sub99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in B around 0 98.6%
if 4e10 < x Initial program 99.8%
+-commutative99.8%
unsub-neg99.8%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 99.7%
mul-1-neg99.7%
*-commutative99.7%
associate-*r/99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Final simplification99.2%
if x < -8e80 or 3.00000000000000015e109 < x Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.9%
*-rgt-identity99.9%
Simplified99.9%
Taylor expanded in B around 0 89.4%
Taylor expanded in B around inf 89.4%
*-commutative89.4%
Simplified89.4%
if -8e80 < x < 3.00000000000000015e109Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.7%
*-rgt-identity99.7%
Simplified99.7%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in B around inf 99.7%
*-commutative99.7%
div-sub99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in B around 0 88.7%
Final simplification89.0%
if x < -1.79999999999999992e-11 or 1.15e-6 < x Initial program 99.6%
distribute-lft-neg-in99.6%
Simplified99.6%
Taylor expanded in B around 0 55.9%
+-commutative55.9%
mul-1-neg55.9%
sub-neg55.9%
associate--l+55.9%
*-commutative55.9%
*-commutative55.9%
div-sub55.9%
Simplified55.9%
if -1.79999999999999992e-11 < x < 1.15e-6Initial program 99.8%
distribute-lft-neg-in99.8%
Simplified99.8%
Taylor expanded in x around 0 99.2%
Final simplification76.2%
Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
tan-quot99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in B around inf 99.7%
*-commutative99.7%
div-sub99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in B around 0 77.9%
Final simplification77.9%
Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 53.8%
+-commutative53.8%
mul-1-neg53.8%
sub-neg53.8%
associate--l+53.8%
*-commutative53.8%
*-commutative53.8%
div-sub53.8%
Simplified53.8%
Final simplification53.8%
Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
Taylor expanded in B around 0 66.1%
Taylor expanded in B around 0 53.7%
Final simplification53.7%
if x < -3.4499999999999999e22 or 1 < x Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 54.3%
mul-1-neg54.3%
sub-neg54.3%
Simplified54.3%
Taylor expanded in x around inf 54.1%
neg-mul-154.1%
distribute-neg-frac54.1%
Simplified54.1%
if -3.4499999999999999e22 < x < 1Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 52.5%
mul-1-neg52.5%
sub-neg52.5%
Simplified52.5%
Taylor expanded in x around 0 50.8%
Final simplification52.5%
Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 53.5%
mul-1-neg53.5%
sub-neg53.5%
Simplified53.5%
Final simplification53.5%
Initial program 99.7%
+-commutative99.7%
unsub-neg99.7%
associate-*r/99.8%
*-rgt-identity99.8%
Simplified99.8%
Taylor expanded in B around 0 66.1%
Taylor expanded in B around 0 53.7%
Taylor expanded in B around inf 3.0%
*-commutative3.0%
Simplified3.0%
Final simplification3.0%
Initial program 99.7%
distribute-lft-neg-in99.7%
Simplified99.7%
Taylor expanded in B around 0 53.5%
mul-1-neg53.5%
sub-neg53.5%
Simplified53.5%
Taylor expanded in x around 0 26.3%
Final simplification26.3%
herbie shell --seed 2023166
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))