
Results
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 97.6%
distribute-rgt-in97.6%
metadata-eval97.6%
metadata-eval97.6%
associate-/l*97.6%
metadata-eval97.6%
Simplified97.6%
expm1-log1p-u97.6%
expm1-udef97.6%
Applied egg-rr100.0%
expm1-def100.0%
expm1-log1p100.0%
*-commutative100.0%
hypot-def98.5%
unpow298.5%
unpow298.5%
+-commutative98.5%
unpow298.5%
unpow298.5%
hypot-def100.0%
*-commutative100.0%
associate-*l/100.0%
associate-*r/100.0%
Simplified100.0%
Final simplification100.0%
if ky < 5.0000000000000002e-136Initial program 96.3%
distribute-rgt-in96.3%
metadata-eval96.3%
metadata-eval96.3%
associate-/l*96.3%
metadata-eval96.3%
Simplified96.3%
Taylor expanded in ky around 0 72.9%
associate-/l*72.8%
associate-*r/72.8%
unpow272.8%
unpow272.8%
times-frac87.0%
Simplified87.0%
add-sqr-sqrt87.0%
hypot-1-def87.0%
div-inv86.4%
sqrt-prod86.4%
*-commutative86.4%
sqrt-prod86.4%
unpow286.4%
sqrt-prod48.7%
add-sqr-sqrt96.6%
metadata-eval96.6%
metadata-eval96.6%
frac-times96.6%
clear-num96.6%
clear-num96.6%
Applied egg-rr96.7%
expm1-log1p-u96.7%
expm1-udef96.7%
associate-*l/96.7%
metadata-eval96.7%
associate-*l*96.7%
Applied egg-rr96.7%
expm1-def96.7%
expm1-log1p96.7%
associate-*r*96.7%
*-commutative96.7%
Simplified96.7%
if 5.0000000000000002e-136 < ky Initial program 100.0%
distribute-rgt-in100.0%
metadata-eval100.0%
metadata-eval100.0%
associate-/l*100.0%
metadata-eval100.0%
Simplified100.0%
expm1-log1p-u100.0%
expm1-udef100.0%
Applied egg-rr100.0%
expm1-def100.0%
expm1-log1p100.0%
*-commutative100.0%
hypot-def100.0%
unpow2100.0%
unpow2100.0%
+-commutative100.0%
unpow2100.0%
unpow2100.0%
hypot-def100.0%
*-commutative100.0%
associate-*l/100.0%
associate-*r/100.0%
Simplified100.0%
Taylor expanded in kx around 0 96.8%
associate-*r/96.8%
Simplified96.8%
Final simplification96.7%
Initial program 97.6%
distribute-rgt-in97.6%
metadata-eval97.6%
metadata-eval97.6%
associate-/l*97.6%
metadata-eval97.6%
Simplified97.6%
Taylor expanded in ky around 0 75.1%
associate-/l*75.5%
associate-*r/75.5%
unpow275.5%
unpow275.5%
times-frac88.3%
Simplified88.3%
add-sqr-sqrt88.3%
hypot-1-def88.3%
div-inv87.9%
sqrt-prod87.9%
*-commutative87.9%
sqrt-prod87.9%
unpow287.9%
sqrt-prod48.3%
add-sqr-sqrt95.9%
metadata-eval95.9%
metadata-eval95.9%
frac-times95.9%
clear-num95.9%
clear-num95.9%
Applied egg-rr95.3%
expm1-log1p-u95.3%
expm1-udef95.3%
associate-*l/95.3%
metadata-eval95.3%
associate-*l*95.3%
Applied egg-rr95.3%
expm1-def95.3%
expm1-log1p95.3%
associate-*r*95.3%
*-commutative95.3%
Simplified95.3%
Final simplification95.3%
Initial program 97.6%
distribute-rgt-in97.6%
metadata-eval97.6%
metadata-eval97.6%
associate-/l*97.6%
metadata-eval97.6%
Simplified97.6%
Taylor expanded in ky around 0 75.1%
associate-/l*75.5%
associate-*r/75.5%
unpow275.5%
unpow275.5%
times-frac88.3%
Simplified88.3%
add-sqr-sqrt88.3%
hypot-1-def88.3%
div-inv87.9%
sqrt-prod87.9%
*-commutative87.9%
sqrt-prod87.9%
unpow287.9%
sqrt-prod48.3%
add-sqr-sqrt95.9%
metadata-eval95.9%
metadata-eval95.9%
frac-times95.9%
clear-num95.9%
clear-num95.9%
Applied egg-rr95.3%
Taylor expanded in kx around 0 86.9%
Final simplification86.9%
if Om < -4.9999999999999998e-70 or 6.59999999999999985e31 < Om Initial program 98.3%
distribute-rgt-in98.3%
metadata-eval98.3%
metadata-eval98.3%
associate-/l*98.3%
metadata-eval98.3%
Simplified98.3%
Taylor expanded in ky around 0 82.3%
associate-/l*82.3%
associate-*r/82.3%
unpow282.3%
unpow282.3%
times-frac95.4%
Simplified95.4%
add-sqr-sqrt95.4%
hypot-1-def95.4%
div-inv94.5%
sqrt-prod94.5%
*-commutative94.5%
sqrt-prod94.5%
unpow294.5%
sqrt-prod45.7%
add-sqr-sqrt95.7%
metadata-eval95.7%
metadata-eval95.7%
frac-times95.7%
clear-num95.7%
clear-num95.7%
Applied egg-rr97.0%
Taylor expanded in kx around 0 85.0%
if -4.9999999999999998e-70 < Om < 6.59999999999999985e31Initial program 97.0%
distribute-rgt-in97.0%
metadata-eval97.0%
metadata-eval97.0%
associate-/l*97.0%
metadata-eval97.0%
Simplified97.0%
Taylor expanded in l around -inf 73.4%
*-commutative73.4%
associate-*l*73.4%
unpow273.4%
unpow273.4%
hypot-def76.4%
Simplified76.4%
Taylor expanded in ky around 0 69.3%
*-commutative69.3%
associate-/r*69.3%
Simplified69.3%
Taylor expanded in Om around 0 80.0%
Final simplification82.4%
Initial program 97.6%
distribute-rgt-in97.6%
metadata-eval97.6%
metadata-eval97.6%
associate-/l*97.6%
metadata-eval97.6%
Simplified97.6%
Taylor expanded in l around -inf 47.7%
*-commutative47.7%
associate-*l*47.7%
unpow247.7%
unpow247.7%
hypot-def49.3%
Simplified49.3%
Taylor expanded in ky around 0 44.3%
*-commutative44.3%
associate-/r*44.3%
Simplified44.3%
Taylor expanded in Om around 0 57.9%
Final simplification57.9%
herbie shell --seed 2023166
(FPCore (l Om kx ky)
:name "Toniolo and Linder, Equation (3a)"
:precision binary64
(sqrt (* (/ 1.0 2.0) (+ 1.0 (/ 1.0 (sqrt (+ 1.0 (* (pow (/ (* 2.0 l) Om) 2.0) (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0))))))))))