



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 6.2 |
|---|---|
| Target | 1.2 |
| Herbie | 0.3 |
if x < 2246989294872715Initial program 0.2
Simplified0.2
rmApplied flip--0.2
Applied associate-*l/0.2
Simplified0.2
if 2246989294872715 < x Initial program 11.0
Simplified11.0
Taylor expanded around inf 11.1
Simplified0.4
Final simplification0.3
herbie shell --seed 2020179
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:herbie-target
(+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))