
Results
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 92.1%
times-frac99.8%
div-sub99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification99.8%
if x < -1.75 or 1.71999999999999997 < x Initial program 83.8%
Taylor expanded in x around inf 83.3%
+-commutative83.3%
unpow283.3%
distribute-rgt-out83.3%
Simplified83.3%
div-inv83.3%
*-commutative83.3%
*-commutative83.3%
associate-/r*83.2%
metadata-eval83.2%
associate-*l*99.3%
Applied egg-rr99.3%
if -1.75 < x < 1.71999999999999997Initial program 99.6%
associate-*l/99.4%
*-commutative99.4%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
Taylor expanded in y around 0 99.1%
Final simplification99.2%
if x < -1.75 or 1.71999999999999997 < x Initial program 83.8%
Taylor expanded in x around inf 83.3%
+-commutative83.3%
unpow283.3%
distribute-rgt-out83.3%
Simplified83.3%
div-inv83.3%
*-commutative83.3%
*-commutative83.3%
associate-/r*83.2%
metadata-eval83.2%
associate-*l*99.3%
Applied egg-rr99.3%
if -1.75 < x < 1.71999999999999997Initial program 99.6%
associate-*l/99.4%
*-commutative99.4%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
Final simplification99.2%
if x < -3.7999999999999998 or 3 < x Initial program 83.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in x around inf 82.3%
unpow282.3%
Simplified82.3%
if -3.7999999999999998 < x < 3Initial program 99.6%
associate-/l*99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.0%
Final simplification90.5%
if x < -3.7999999999999998 or 3 < x Initial program 83.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
clear-num99.6%
un-div-inv99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 82.3%
unpow282.3%
associate-*r/82.2%
associate-*l/82.2%
*-commutative82.2%
associate-*r*98.3%
Simplified98.3%
if -3.7999999999999998 < x < 3Initial program 99.6%
associate-/l*99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in x around 0 98.0%
Final simplification98.1%
if x < -4.5999999999999996 or 3 < x Initial program 83.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
clear-num99.6%
un-div-inv99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 82.3%
unpow282.3%
associate-*r/82.2%
associate-*l/82.2%
*-commutative82.2%
associate-*r*98.3%
Simplified98.3%
if -4.5999999999999996 < x < 3Initial program 99.6%
associate-*l/99.4%
*-commutative99.4%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
Taylor expanded in y around 0 99.1%
Final simplification98.7%
if x < -4.5999999999999996Initial program 81.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in x around inf 79.8%
associate-*r/79.7%
unpow279.7%
Simplified79.7%
associate-/l*79.7%
associate-/r/79.8%
Applied egg-rr79.8%
associate-*l/79.7%
associate-*r*79.9%
metadata-eval79.9%
associate-/r/79.9%
clear-num80.0%
associate-/r/80.0%
associate-/l/97.9%
associate-/r*98.0%
Applied egg-rr98.0%
if -4.5999999999999996 < x < 3Initial program 99.6%
associate-*l/99.4%
*-commutative99.4%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
Taylor expanded in y around 0 99.1%
if 3 < x Initial program 86.2%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
clear-num99.6%
un-div-inv99.6%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 85.2%
unpow285.2%
associate-*r/85.2%
associate-*l/85.2%
*-commutative85.2%
associate-*r*98.7%
Simplified98.7%
Final simplification98.7%
Initial program 92.1%
associate-*l/99.6%
*-commutative99.6%
associate-/r*99.7%
Simplified99.7%
Final simplification99.7%
if x < -0.75Initial program 81.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in x around 0 31.6%
*-commutative31.6%
Simplified31.6%
Taylor expanded in y around 0 31.6%
Taylor expanded in x around inf 31.6%
if -0.75 < x Initial program 95.7%
associate-*l/99.5%
*-commutative99.5%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 70.6%
Final simplification60.4%
if x < -1Initial program 81.8%
associate-*l/99.7%
*-commutative99.7%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in x around inf 98.1%
Taylor expanded in x around 0 31.6%
neg-mul-131.6%
distribute-neg-frac31.6%
Simplified31.6%
if -1 < x Initial program 95.7%
associate-*l/99.5%
*-commutative99.5%
associate-/r*99.8%
Simplified99.8%
Taylor expanded in x around 0 70.6%
Final simplification60.4%
Initial program 92.1%
associate-/l*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 59.7%
Final simplification59.7%
Initial program 92.1%
associate-*l/99.6%
*-commutative99.6%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in x around 0 53.4%
Final simplification53.4%
herbie shell --seed 2023167
(FPCore (x y)
:name "Diagrams.TwoD.Arc:bezierFromSweepQ1 from diagrams-lib-1.3.0.3"
:precision binary64
:herbie-target
(* (/ (- 1.0 x) y) (/ (- 3.0 x) 3.0))
(/ (* (- 1.0 x) (- 3.0 x)) (* y 3.0)))