
Results
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 73.3%
*-commutative73.3%
associate-*l*73.3%
unpow273.3%
hypot-1-def86.7%
*-commutative86.7%
associate-*l*86.7%
Simplified86.7%
Final simplification86.7%
Initial program 73.3%
*-commutative73.3%
associate-*l*73.3%
associate-*r*73.3%
*-commutative73.3%
associate-*l*73.2%
*-commutative73.2%
unpow273.2%
hypot-1-def86.6%
*-commutative86.6%
associate-*l*86.6%
Simplified86.6%
Final simplification86.6%
if K < -8.2000000000000001e43 or 6e-10 < K Initial program 74.6%
*-commutative74.6%
associate-*l*74.6%
associate-*r*74.6%
*-commutative74.6%
associate-*l*74.5%
*-commutative74.5%
unpow274.5%
hypot-1-def86.7%
*-commutative86.7%
associate-*l*86.7%
Simplified86.7%
Taylor expanded in U around 0 58.7%
if -8.2000000000000001e43 < K < 6e-10Initial program 72.2%
*-commutative72.2%
associate-*l*72.2%
associate-*r*72.2%
*-commutative72.2%
associate-*l*72.2%
*-commutative72.2%
unpow272.2%
hypot-1-def86.5%
*-commutative86.5%
associate-*l*86.5%
Simplified86.5%
Taylor expanded in K around 0 53.1%
associate-*r*53.1%
unpow253.1%
unpow253.1%
Simplified53.1%
clear-num53.1%
inv-pow53.1%
Applied egg-rr53.1%
unpow-153.1%
times-frac67.8%
Simplified67.8%
add-sqr-sqrt67.8%
hypot-1-def67.8%
*-commutative67.8%
sqrt-prod67.8%
sqrt-div67.8%
metadata-eval67.8%
sqrt-prod50.7%
add-sqr-sqrt80.8%
clear-num80.9%
metadata-eval80.9%
Applied egg-rr80.9%
Final simplification70.8%
if J < -1.74999999999999993e-81 or 5.19999999999999979e-110 < J Initial program 91.8%
*-commutative91.8%
associate-*l*91.8%
associate-*r*91.8%
*-commutative91.8%
associate-*l*91.8%
*-commutative91.8%
unpow291.8%
hypot-1-def96.4%
*-commutative96.4%
associate-*l*96.4%
Simplified96.4%
Taylor expanded in U around 0 75.7%
if -1.74999999999999993e-81 < J < 1.65000000000000013e-244Initial program 40.2%
*-commutative40.2%
associate-*l*40.2%
associate-*r*40.2%
*-commutative40.2%
associate-*l*40.1%
*-commutative40.1%
unpow240.1%
hypot-1-def69.4%
*-commutative69.4%
associate-*l*69.4%
Simplified69.4%
Taylor expanded in J around 0 55.9%
neg-mul-155.9%
Simplified55.9%
if 1.65000000000000013e-244 < J < 5.19999999999999979e-110Initial program 45.1%
*-commutative45.1%
associate-*l*45.1%
associate-*r*45.1%
*-commutative45.1%
associate-*l*45.1%
*-commutative45.1%
unpow245.1%
hypot-1-def71.2%
*-commutative71.2%
associate-*l*71.2%
Simplified71.2%
Taylor expanded in U around -inf 52.9%
Final simplification67.9%
if J < -2.7999999999999998e-28 or 1.79999999999999998e49 < J Initial program 97.5%
*-commutative97.5%
associate-*l*97.5%
associate-*r*97.5%
*-commutative97.5%
associate-*l*97.5%
*-commutative97.5%
unpow297.5%
hypot-1-def99.7%
*-commutative99.7%
associate-*l*99.7%
Simplified99.7%
Taylor expanded in K around 0 47.9%
associate-*r*47.9%
unpow247.9%
unpow247.9%
Simplified47.9%
Taylor expanded in U around 0 46.9%
if -2.7999999999999998e-28 < J < -4.49999999999999993e-188 or 5.2000000000000003e-244 < J < 4.70000000000000013e-108Initial program 51.9%
*-commutative51.9%
associate-*l*51.9%
associate-*r*51.9%
*-commutative51.9%
associate-*l*51.8%
*-commutative51.8%
unpow251.8%
hypot-1-def79.3%
*-commutative79.3%
associate-*l*79.3%
Simplified79.3%
Taylor expanded in U around -inf 46.8%
if -4.49999999999999993e-188 < J < 5.2000000000000003e-244 or 4.70000000000000013e-108 < J < 1.79999999999999998e49Initial program 53.4%
*-commutative53.4%
associate-*l*53.4%
associate-*r*53.4%
*-commutative53.4%
associate-*l*53.3%
*-commutative53.3%
unpow253.3%
hypot-1-def70.9%
*-commutative70.9%
associate-*l*70.9%
Simplified70.9%
Taylor expanded in J around 0 57.0%
neg-mul-157.0%
Simplified57.0%
Final simplification49.4%
if U < -1.7999999999999999e166 or 16000 < U < 1.69999999999999998e188 or 1.35999999999999995e281 < U Initial program 43.1%
*-commutative43.1%
associate-*l*43.1%
associate-*r*43.1%
*-commutative43.1%
associate-*l*43.0%
*-commutative43.0%
unpow243.0%
hypot-1-def71.1%
*-commutative71.1%
associate-*l*71.1%
Simplified71.1%
Taylor expanded in U around -inf 50.0%
if -1.7999999999999999e166 < U < 16000 or 1.69999999999999998e188 < U < 1.35999999999999995e281Initial program 87.3%
*-commutative87.3%
associate-*l*87.3%
associate-*r*87.3%
*-commutative87.3%
associate-*l*87.2%
*-commutative87.2%
unpow287.2%
hypot-1-def93.8%
*-commutative93.8%
associate-*l*93.8%
Simplified93.8%
Taylor expanded in J around 0 27.2%
neg-mul-127.2%
Simplified27.2%
Final simplification34.4%
Initial program 73.3%
*-commutative73.3%
associate-*l*73.3%
associate-*r*73.3%
*-commutative73.3%
associate-*l*73.2%
*-commutative73.2%
unpow273.2%
hypot-1-def86.6%
*-commutative86.6%
associate-*l*86.6%
Simplified86.6%
Taylor expanded in U around -inf 25.2%
Final simplification25.2%
herbie shell --seed 2023166
(FPCore (J K U)
:name "Maksimov and Kolovsky, Equation (3)"
:precision binary64
(* (* (* -2.0 J) (cos (/ K 2.0))) (sqrt (+ 1.0 (pow (/ U (* (* 2.0 J) (cos (/ K 2.0)))) 2.0)))))