
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-/l*99.8%
distribute-frac-neg99.8%
exp-neg99.8%
associate-/r/99.8%
/-rgt-identity99.8%
associate-*l*99.8%
Simplified99.9%
Final simplification99.9%
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.0%
associate-*r/99.1%
associate-/l*99.0%
distribute-frac-neg99.0%
exp-neg99.0%
Simplified99.1%
Final simplification99.1%
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.0%
associate-*r/99.1%
associate-/l*99.0%
distribute-frac-neg99.0%
exp-neg99.0%
Simplified99.1%
Final simplification99.1%
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.0%
associate-*r/99.1%
associate-/l*99.0%
distribute-frac-neg99.0%
exp-neg99.0%
Simplified99.1%
expm1-log1p-u99.0%
expm1-udef99.0%
add-sqr-sqrt-0.0%
sqrt-unprod92.4%
sqr-neg92.4%
sqrt-unprod95.4%
add-sqr-sqrt95.4%
add-sqr-sqrt47.5%
fabs-sqr47.5%
add-sqr-sqrt97.4%
Applied egg-rr97.4%
expm1-def97.4%
expm1-log1p97.4%
+-commutative97.4%
Simplified97.4%
add-sqr-sqrt97.4%
sqrt-unprod97.4%
sqr-neg97.4%
distribute-frac-neg97.4%
distribute-frac-neg97.4%
sqrt-unprod-0.0%
add-sqr-sqrt63.0%
distribute-frac-neg63.0%
exp-neg63.0%
add-sqr-sqrt49.2%
fabs-sqr49.2%
add-sqr-sqrt99.1%
Applied egg-rr99.1%
rec-exp99.1%
distribute-neg-frac99.1%
Simplified99.1%
Final simplification99.1%
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.0%
associate-*r/99.1%
associate-/l*99.0%
distribute-frac-neg99.0%
exp-neg99.0%
Simplified99.1%
Taylor expanded in s around inf 95.9%
Final simplification95.9%
Initial program 99.8%
associate-*l*99.9%
+-commutative99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in s around inf 95.9%
Final simplification95.9%
if x < -1.8e9Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 1.1%
associate-+r+1.1%
+-commutative1.1%
associate-+r+1.1%
Simplified1.1%
Taylor expanded in x around inf 95.0%
unpow295.0%
Simplified95.0%
if -1.8e9 < x < -5.00000016e-23Initial program 99.7%
*-lft-identity99.7%
associate-*r/99.7%
associate-*l*99.9%
times-frac99.9%
associate-*r/99.9%
associate-/l*99.8%
distribute-frac-neg99.8%
exp-neg99.8%
Simplified99.8%
expm1-log1p-u99.8%
expm1-udef99.8%
add-sqr-sqrt-0.0%
sqrt-unprod94.2%
sqr-neg94.2%
sqrt-unprod94.2%
add-sqr-sqrt94.2%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
expm1-def99.8%
expm1-log1p99.8%
+-commutative99.8%
Simplified99.8%
add-sqr-sqrt99.7%
sqrt-unprod99.8%
sqr-neg99.8%
distribute-frac-neg99.8%
distribute-frac-neg99.8%
sqrt-unprod-0.0%
add-sqr-sqrt19.9%
distribute-frac-neg19.9%
exp-neg19.9%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
rec-exp99.8%
distribute-neg-frac99.8%
Simplified99.8%
Taylor expanded in x around 0 97.5%
associate-+r+97.5%
+-commutative97.5%
unpow297.5%
unpow297.5%
Simplified97.5%
Taylor expanded in x around 0 69.6%
mul-1-neg69.6%
unsub-neg69.6%
associate-*r/69.6%
unpow269.6%
unpow269.6%
associate-*r*69.6%
Simplified69.6%
if -5.00000016e-23 < x < 6.5000002e-21Initial program 99.5%
*-lft-identity99.5%
associate-*r/99.5%
associate-/l*99.6%
distribute-frac-neg99.6%
exp-neg99.5%
associate-/r/99.4%
/-rgt-identity99.4%
associate-*l*99.6%
Simplified99.8%
Taylor expanded in s around inf 81.2%
associate-+r+81.2%
+-commutative81.2%
associate-+r+81.2%
Simplified81.2%
Taylor expanded in x around 0 81.2%
*-commutative81.2%
fma-def81.2%
unpow281.2%
associate-*l/83.9%
*-commutative83.9%
Simplified83.9%
if 6.5000002e-21 < x Initial program 99.9%
*-lft-identity99.9%
associate-*r/99.9%
associate-*l*99.9%
times-frac98.9%
associate-*r/98.9%
associate-/l*98.9%
distribute-frac-neg98.9%
exp-neg98.9%
Simplified98.9%
Taylor expanded in s around inf 98.0%
add-sqr-sqrt98.0%
sqrt-unprod97.9%
sqr-neg97.9%
sqrt-unprod-0.0%
add-sqr-sqrt7.3%
expm1-log1p-u7.3%
expm1-udef7.3%
Applied egg-rr98.0%
associate--l+98.0%
metadata-eval98.0%
+-rgt-identity98.0%
Simplified98.0%
Taylor expanded in x around 0 81.5%
unpow281.5%
unpow281.5%
Simplified81.5%
Final simplification82.3%
if x < -1.8e9Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 1.1%
associate-+r+1.1%
+-commutative1.1%
associate-+r+1.1%
Simplified1.1%
Taylor expanded in x around inf 95.0%
unpow295.0%
Simplified95.0%
if -1.8e9 < x < -5.99999992e-24Initial program 99.7%
*-lft-identity99.7%
associate-*r/99.7%
associate-*l*99.9%
times-frac99.9%
associate-*r/99.9%
associate-/l*99.8%
distribute-frac-neg99.8%
exp-neg99.8%
Simplified99.7%
expm1-log1p-u99.7%
expm1-udef99.7%
add-sqr-sqrt-0.0%
sqrt-unprod93.3%
sqr-neg93.3%
sqrt-unprod93.3%
add-sqr-sqrt93.3%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.7%
Applied egg-rr99.7%
expm1-def99.7%
expm1-log1p99.7%
+-commutative99.7%
Simplified99.7%
add-sqr-sqrt99.7%
sqrt-unprod99.7%
sqr-neg99.7%
distribute-frac-neg99.7%
distribute-frac-neg99.7%
sqrt-unprod-0.0%
add-sqr-sqrt21.9%
distribute-frac-neg21.9%
exp-neg21.9%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.7%
Applied egg-rr99.7%
rec-exp99.7%
distribute-neg-frac99.7%
Simplified99.7%
Taylor expanded in x around 0 96.9%
associate-+r+96.9%
+-commutative96.9%
unpow296.9%
unpow296.9%
Simplified96.9%
Taylor expanded in x around 0 70.1%
mul-1-neg70.1%
unsub-neg70.1%
associate-*r/70.0%
unpow270.0%
unpow270.0%
associate-*r*70.1%
Simplified70.1%
if -5.99999992e-24 < x Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.8%
times-frac99.1%
associate-*r/99.2%
associate-/l*99.1%
distribute-frac-neg99.1%
exp-neg99.1%
Simplified99.2%
Taylor expanded in s around inf 95.9%
add-sqr-sqrt95.9%
sqrt-unprod90.7%
sqr-neg90.7%
sqrt-unprod-0.0%
add-sqr-sqrt30.4%
expm1-log1p-u30.4%
expm1-udef30.4%
Applied egg-rr92.8%
associate--l+92.8%
metadata-eval92.8%
+-rgt-identity92.8%
Simplified92.8%
Final simplification88.7%
if x < 1e-28Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.1%
associate-*r/99.2%
associate-/l*99.1%
distribute-frac-neg99.1%
exp-neg99.1%
Simplified99.1%
expm1-log1p-u99.1%
expm1-udef99.1%
add-sqr-sqrt-0.0%
sqrt-unprod89.2%
sqr-neg89.2%
sqrt-unprod94.4%
add-sqr-sqrt94.4%
add-sqr-sqrt7.5%
fabs-sqr7.5%
add-sqr-sqrt98.2%
Applied egg-rr98.2%
expm1-def98.2%
expm1-log1p98.2%
+-commutative98.2%
Simplified98.2%
add-sqr-sqrt98.2%
sqrt-unprod98.2%
sqr-neg98.2%
distribute-frac-neg98.2%
distribute-frac-neg98.2%
sqrt-unprod-0.0%
add-sqr-sqrt33.7%
distribute-frac-neg33.7%
exp-neg33.7%
add-sqr-sqrt8.5%
fabs-sqr8.5%
add-sqr-sqrt99.1%
Applied egg-rr99.1%
rec-exp99.1%
distribute-neg-frac99.1%
Simplified99.1%
Taylor expanded in x around 0 94.7%
if 1e-28 < x Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.8%
times-frac98.9%
associate-*r/99.0%
associate-/l*98.9%
distribute-frac-neg98.9%
exp-neg99.0%
Simplified99.0%
add-sqr-sqrt99.0%
sqrt-unprod98.0%
sqr-neg98.0%
sqrt-unprod-0.0%
add-sqr-sqrt12.5%
add-sqr-sqrt-0.0%
sqrt-unprod98.0%
sqr-neg98.0%
sqrt-unprod99.0%
add-sqr-sqrt99.0%
expm1-log1p-u98.4%
expm1-udef98.4%
Applied egg-rr96.1%
expm1-def96.2%
expm1-log1p96.5%
associate-/r*97.4%
+-commutative97.4%
count-297.4%
Simplified97.4%
Final simplification95.9%
if x < -1.00000002e-33Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.0%
associate-*r/99.0%
associate-/l*98.9%
distribute-frac-neg98.9%
exp-neg98.9%
Simplified99.0%
expm1-log1p-u98.9%
expm1-udef98.9%
add-sqr-sqrt-0.0%
sqrt-unprod92.7%
sqr-neg92.7%
sqrt-unprod94.4%
add-sqr-sqrt94.4%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt98.9%
Applied egg-rr98.9%
expm1-def98.9%
expm1-log1p99.0%
+-commutative99.0%
Simplified99.0%
add-sqr-sqrt98.9%
sqrt-unprod99.0%
sqr-neg99.0%
distribute-frac-neg99.0%
distribute-frac-neg99.0%
sqrt-unprod-0.0%
add-sqr-sqrt18.7%
distribute-frac-neg18.7%
exp-neg18.7%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.0%
Applied egg-rr99.0%
rec-exp99.0%
distribute-neg-frac99.0%
Simplified99.0%
Taylor expanded in x around 0 94.7%
if -1.00000002e-33 < x Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-*l*99.9%
times-frac99.1%
associate-*r/99.2%
associate-/l*99.1%
distribute-frac-neg99.1%
exp-neg99.1%
Simplified99.2%
Taylor expanded in s around inf 96.8%
add-sqr-sqrt96.8%
sqrt-unprod92.6%
sqr-neg92.6%
sqrt-unprod-0.0%
add-sqr-sqrt27.8%
expm1-log1p-u27.8%
expm1-udef27.8%
Applied egg-rr96.8%
associate--l+96.8%
metadata-eval96.8%
+-rgt-identity96.8%
Simplified96.8%
Final simplification95.9%
if x < -1.8e9Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 1.1%
associate-+r+1.1%
+-commutative1.1%
associate-+r+1.1%
Simplified1.1%
Taylor expanded in x around inf 95.0%
unpow295.0%
Simplified95.0%
if -1.8e9 < x < -5.00000016e-23Initial program 99.7%
*-lft-identity99.7%
associate-*r/99.7%
associate-*l*99.9%
times-frac99.9%
associate-*r/99.9%
associate-/l*99.8%
distribute-frac-neg99.8%
exp-neg99.8%
Simplified99.8%
expm1-log1p-u99.8%
expm1-udef99.8%
add-sqr-sqrt-0.0%
sqrt-unprod94.2%
sqr-neg94.2%
sqrt-unprod94.2%
add-sqr-sqrt94.2%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
expm1-def99.8%
expm1-log1p99.8%
+-commutative99.8%
Simplified99.8%
add-sqr-sqrt99.7%
sqrt-unprod99.8%
sqr-neg99.8%
distribute-frac-neg99.8%
distribute-frac-neg99.8%
sqrt-unprod-0.0%
add-sqr-sqrt19.9%
distribute-frac-neg19.9%
exp-neg19.9%
add-sqr-sqrt-0.0%
fabs-sqr-0.0%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
rec-exp99.8%
distribute-neg-frac99.8%
Simplified99.8%
Taylor expanded in x around 0 97.5%
associate-+r+97.5%
+-commutative97.5%
unpow297.5%
unpow297.5%
Simplified97.5%
Taylor expanded in x around 0 69.6%
mul-1-neg69.6%
unsub-neg69.6%
associate-*r/69.6%
unpow269.6%
unpow269.6%
associate-*r*69.6%
Simplified69.6%
if -5.00000016e-23 < x < 6.5000002e-21Initial program 99.5%
*-lft-identity99.5%
associate-*r/99.5%
associate-/l*99.6%
distribute-frac-neg99.6%
exp-neg99.5%
associate-/r/99.4%
/-rgt-identity99.4%
associate-*l*99.6%
Simplified99.8%
Taylor expanded in s around inf 81.2%
associate-+r+81.2%
+-commutative81.2%
associate-+r+81.2%
Simplified81.2%
fma-udef81.2%
associate-/l*81.4%
Applied egg-rr81.4%
associate--l+81.4%
associate-*r/81.4%
*-commutative81.4%
associate-/l*83.7%
div-inv83.7%
clear-num83.7%
Applied egg-rr83.7%
if 6.5000002e-21 < x Initial program 99.9%
*-lft-identity99.9%
associate-*r/99.9%
associate-*l*99.9%
times-frac98.9%
associate-*r/98.9%
associate-/l*98.9%
distribute-frac-neg98.9%
exp-neg98.9%
Simplified98.9%
Taylor expanded in s around inf 98.0%
add-sqr-sqrt98.0%
sqrt-unprod97.9%
sqr-neg97.9%
sqrt-unprod-0.0%
add-sqr-sqrt7.3%
expm1-log1p-u7.3%
expm1-udef7.3%
Applied egg-rr98.0%
associate--l+98.0%
metadata-eval98.0%
+-rgt-identity98.0%
Simplified98.0%
Taylor expanded in x around 0 81.5%
unpow281.5%
unpow281.5%
Simplified81.5%
Final simplification82.3%
if x < -1e9Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 1.3%
associate-+r+1.3%
+-commutative1.3%
associate-+r+1.3%
Simplified1.3%
Taylor expanded in x around inf 93.3%
unpow293.3%
Simplified93.3%
if -1e9 < x Initial program 99.7%
*-lft-identity99.7%
associate-*r/99.7%
associate-*l*99.8%
times-frac99.3%
associate-*r/99.3%
associate-/l*99.3%
distribute-frac-neg99.3%
exp-neg99.3%
Simplified99.3%
Taylor expanded in s around inf 95.4%
add-sqr-sqrt95.4%
sqrt-unprod91.5%
sqr-neg91.5%
sqrt-unprod-0.0%
add-sqr-sqrt28.5%
expm1-log1p-u28.5%
expm1-udef28.5%
Applied egg-rr75.8%
associate--l+75.8%
metadata-eval75.8%
+-rgt-identity75.8%
Simplified75.8%
Taylor expanded in x around 0 74.1%
unpow274.1%
unpow274.1%
Simplified74.1%
Final simplification77.9%
if x < -1e9Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 1.3%
associate-+r+1.3%
+-commutative1.3%
associate-+r+1.3%
Simplified1.3%
Taylor expanded in x around inf 93.3%
unpow293.3%
Simplified93.3%
if -1e9 < x Initial program 99.7%
*-lft-identity99.7%
associate-*r/99.7%
associate-*l*99.8%
times-frac99.3%
associate-*r/99.3%
associate-/l*99.3%
distribute-frac-neg99.3%
exp-neg99.3%
Simplified99.3%
Taylor expanded in s around inf 95.4%
add-sqr-sqrt95.4%
sqrt-unprod91.5%
sqr-neg91.5%
sqrt-unprod-0.0%
add-sqr-sqrt28.5%
expm1-log1p-u28.5%
expm1-udef28.5%
Applied egg-rr75.8%
associate--l+75.8%
metadata-eval75.8%
+-rgt-identity75.8%
Simplified75.8%
Taylor expanded in x around 0 74.1%
+-commutative74.1%
associate-*r/74.1%
unpow274.1%
times-frac70.9%
unpow270.9%
associate-*r/70.9%
Simplified70.9%
Final simplification75.3%
Initial program 99.8%
*-lft-identity99.8%
associate-*r/99.8%
associate-/l*99.8%
distribute-frac-neg99.8%
exp-neg99.8%
associate-/r/99.8%
/-rgt-identity99.8%
associate-*l*99.8%
Simplified99.9%
Taylor expanded in s around inf 25.8%
associate-+r+25.8%
+-commutative25.8%
associate-+r+25.8%
Simplified25.8%
fma-udef25.8%
associate-/l*25.9%
Applied egg-rr25.9%
*-un-lft-identity25.9%
fma-def25.9%
div-inv25.9%
clear-num25.9%
associate-/l*26.4%
div-inv26.4%
clear-num26.4%
Applied egg-rr26.4%
*-lft-identity26.4%
fma-udef26.4%
associate-*r/25.7%
unpow225.7%
*-commutative25.7%
+-commutative25.7%
associate-+r-25.7%
*-commutative25.7%
associate-*r/25.7%
*-commutative25.7%
unpow225.7%
associate-*r*25.8%
associate-*r/25.8%
unpow225.8%
div-sub38.1%
unpow238.1%
Simplified65.8%
Final simplification65.8%
if x < -0.0199999996 or 4.99999987e-5 < x Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 4.1%
associate-+r+4.1%
+-commutative4.1%
associate-+r+4.1%
Simplified4.1%
Taylor expanded in x around inf 76.2%
unpow276.2%
associate-*l/76.2%
*-commutative76.2%
Simplified76.2%
if -0.0199999996 < x < 4.99999987e-5Initial program 99.5%
associate-*l*99.7%
+-commutative99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in s around inf 50.1%
Final simplification64.5%
if x < -0.0199999996 or 4.99999987e-5 < x Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 4.1%
associate-+r+4.1%
+-commutative4.1%
associate-+r+4.1%
Simplified4.1%
Taylor expanded in x around inf 76.2%
unpow276.2%
Simplified76.2%
if -0.0199999996 < x < 4.99999987e-5Initial program 99.5%
associate-*l*99.7%
+-commutative99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in s around inf 50.1%
Final simplification64.5%
if x < -0.0199999996 or 4.99999987e-5 < x Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 4.1%
associate-+r+4.1%
+-commutative4.1%
associate-+r+4.1%
Simplified4.1%
Taylor expanded in x around inf 73.8%
unpow273.8%
Simplified73.8%
if -0.0199999996 < x < 4.99999987e-5Initial program 99.5%
associate-*l*99.7%
+-commutative99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in s around inf 50.1%
Final simplification63.2%
if x < -0.0199999996Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 4.3%
associate-+r+4.3%
+-commutative4.3%
associate-+r+4.3%
Simplified4.3%
Taylor expanded in x around inf 71.7%
unpow271.7%
associate-/r*71.7%
Simplified71.7%
if -0.0199999996 < x < 4.99999987e-5Initial program 99.5%
associate-*l*99.7%
+-commutative99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in s around inf 50.1%
if 4.99999987e-5 < x Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 3.9%
associate-+r+3.9%
+-commutative3.9%
associate-+r+3.9%
Simplified3.9%
Taylor expanded in x around inf 75.4%
unpow275.4%
Simplified75.4%
Final simplification63.2%
if x < -0.0199999996Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 4.3%
associate-+r+4.3%
+-commutative4.3%
associate-+r+4.3%
Simplified4.3%
Taylor expanded in x around inf 71.7%
unpow271.7%
Simplified71.7%
clear-num75.1%
inv-pow75.1%
Applied egg-rr75.1%
unpow-175.1%
associate-/l*75.1%
associate-/r/71.7%
Simplified71.7%
if -0.0199999996 < x < 4.99999987e-5Initial program 99.5%
associate-*l*99.7%
+-commutative99.7%
+-commutative99.7%
Simplified99.7%
Taylor expanded in s around inf 50.1%
if 4.99999987e-5 < x Initial program 100.0%
*-lft-identity100.0%
associate-*r/100.0%
associate-/l*100.0%
distribute-frac-neg100.0%
exp-neg100.0%
associate-/r/100.0%
/-rgt-identity100.0%
associate-*l*100.0%
Simplified100.0%
Taylor expanded in s around inf 3.9%
associate-+r+3.9%
+-commutative3.9%
associate-+r+3.9%
Simplified3.9%
Taylor expanded in x around inf 75.4%
unpow275.4%
Simplified75.4%
Final simplification63.2%
Initial program 99.8%
associate-*l*99.9%
+-commutative99.9%
+-commutative99.9%
Simplified99.9%
Taylor expanded in s around inf 24.9%
Final simplification24.9%
herbie shell --seed 2023166
(FPCore (x s)
:name "Logistic distribution"
:precision binary32
:pre (and (<= 0.0 s) (<= s 1.0651631))
(/ (exp (/ (- (fabs x)) s)) (* (* s (+ 1.0 (exp (/ (- (fabs x)) s)))) (+ 1.0 (exp (/ (- (fabs x)) s))))))