
Results
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 98.3%
*-commutative98.3%
clear-num98.3%
un-div-inv98.3%
Applied egg-rr98.3%
Taylor expanded in z around 0 88.1%
associate-*r/88.4%
associate-*r/91.3%
associate-*r*91.3%
neg-mul-191.3%
cancel-sign-sub-inv91.3%
distribute-rgt-out--98.3%
*-commutative98.3%
Simplified98.3%
Final simplification98.3%
if (/.f64 x y) < -4e7 or 9.9999999999999998e-13 < (/.f64 x y) Initial program 97.6%
Taylor expanded in x around 0 92.6%
associate-*l/92.6%
*-commutative92.6%
Simplified92.6%
if -4e7 < (/.f64 x y) < 9.9999999999999998e-13Initial program 99.1%
Taylor expanded in z around inf 93.5%
associate-*r/98.5%
Simplified98.5%
Final simplification95.5%
if (/.f64 x y) < -1 or 1.5e5 < (/.f64 x y) Initial program 97.5%
Taylor expanded in z around 0 61.8%
mul-1-neg61.8%
unsub-neg61.8%
associate-/l*63.6%
associate-/r/58.2%
Simplified58.2%
*-commutative58.2%
associate-*r/61.8%
Applied egg-rr61.8%
Taylor expanded in x around inf 61.3%
mul-1-neg61.3%
associate-*r/64.8%
*-commutative64.8%
distribute-rgt-neg-in64.8%
Simplified64.8%
if -1 < (/.f64 x y) < 1.5e5Initial program 99.1%
Taylor expanded in x around 0 72.7%
Final simplification69.0%
if t < -1.8000000000000001e-70 or 6.20000000000000029e59 < t Initial program 99.9%
Taylor expanded in z around 0 83.9%
mul-1-neg83.9%
unsub-neg83.9%
associate-/l*88.5%
associate-/r/79.8%
Simplified79.8%
Taylor expanded in t around 0 88.5%
if -1.8000000000000001e-70 < t < 6.20000000000000029e59Initial program 96.7%
*-commutative96.7%
clear-num96.6%
un-div-inv96.6%
Applied egg-rr96.6%
Taylor expanded in z around inf 83.7%
*-commutative83.7%
associate-*r/83.7%
Simplified83.7%
Final simplification86.2%
if z < -1.01999999999999999e-54Initial program 98.3%
*-commutative98.3%
clear-num98.3%
un-div-inv98.5%
Applied egg-rr98.5%
Taylor expanded in z around inf 75.7%
*-commutative75.7%
associate-*r/86.0%
Simplified86.0%
if -1.01999999999999999e-54 < z < 8.19999999999999944e61Initial program 97.9%
Taylor expanded in z around 0 83.2%
mul-1-neg83.2%
unsub-neg83.2%
associate-/l*84.6%
associate-/r/78.9%
Simplified78.9%
Taylor expanded in t around 0 84.6%
if 8.19999999999999944e61 < z Initial program 99.6%
Taylor expanded in z around inf 87.0%
associate-*r/94.2%
Simplified94.2%
Final simplification86.9%
Initial program 98.3%
Taylor expanded in z around 0 67.1%
mul-1-neg67.1%
unsub-neg67.1%
associate-/l*69.1%
associate-/r/64.2%
Simplified64.2%
Taylor expanded in t around 0 69.9%
Final simplification69.9%
Initial program 98.3%
Taylor expanded in x around 0 39.9%
Final simplification39.9%
herbie shell --seed 2023167
(FPCore (x y z t)
:name "Numeric.Signal.Multichannel:$cget from hsignal-0.2.7.1"
:precision binary64
:herbie-target
(if (< z 2.759456554562692e-282) (+ (* (/ x y) (- z t)) t) (if (< z 2.326994450874436e-110) (+ (* x (/ (- z t) y)) t) (+ (* (/ x y) (- z t)) t)))
(+ (* (/ x y) (- z t)) t))