
Results
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 51.0%
Taylor expanded in x around 0 99.4%
pow299.4%
add-sqr-sqrt99.2%
pow299.2%
*-commutative99.2%
sqrt-prod99.3%
sqrt-prod46.1%
add-sqr-sqrt99.3%
Applied egg-rr99.3%
unpow299.3%
associate-*r*99.5%
Applied egg-rr99.5%
Final simplification99.5%
Initial program 51.0%
Taylor expanded in x around 0 99.4%
pow299.4%
add-sqr-sqrt99.2%
pow299.2%
*-commutative99.2%
sqrt-prod99.3%
sqrt-prod46.1%
add-sqr-sqrt99.3%
Applied egg-rr99.3%
unpow299.3%
swap-sqr99.4%
add-sqr-sqrt99.4%
Applied egg-rr99.4%
Final simplification99.4%
Initial program 51.0%
Taylor expanded in x around 0 99.1%
fma-def99.1%
unpow299.1%
Simplified99.1%
Final simplification99.1%
Initial program 51.0%
Taylor expanded in x around inf 51.0%
*-commutative51.0%
associate-*l/51.0%
distribute-rgt-out51.0%
Simplified51.0%
Taylor expanded in x around 0 99.1%
unpow299.1%
associate-*l*99.1%
+-commutative99.1%
*-commutative99.1%
fma-def99.1%
associate-*l*99.1%
Simplified99.1%
Final simplification99.1%
Initial program 51.0%
add-sqr-sqrt51.0%
pow251.0%
div-sub51.0%
tan-quot50.9%
associate-/r/51.0%
pow151.0%
pow151.0%
pow-div51.0%
metadata-eval51.0%
metadata-eval51.0%
*-un-lft-identity51.0%
Applied egg-rr51.0%
Taylor expanded in x around 0 98.0%
unpow298.0%
associate-*r*98.1%
*-commutative98.1%
Applied egg-rr98.1%
Final simplification98.1%
Initial program 51.0%
Taylor expanded in x around 0 98.1%
unpow298.1%
Simplified98.1%
Final simplification98.1%
Initial program 51.0%
Taylor expanded in x around 0 98.1%
unpow298.1%
Simplified98.1%
Taylor expanded in x around 0 98.1%
unpow298.1%
associate-*l*98.1%
*-commutative98.1%
Simplified98.1%
Final simplification98.1%
herbie shell --seed 2023167
(FPCore (x)
:name "ENA, Section 1.4, Exercise 4a"
:precision binary64
:pre (and (<= -1.0 x) (<= x 1.0))
:herbie-target
(* 0.16666666666666666 (* x x))
(/ (- x (sin x)) (tan x)))