



Bits error versus a




Bits error versus x
| Original | 29.9 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
if (* (sqrt (+ (sqrt (exp (* x a))) 1)) (* (sqrt (+ (sqrt (exp (* a x))) 1)) (* (* a x) (+ 1/2 (* 1/8 (* a x)))))) < 0.00549780709177216Initial program 44.6
rmApplied add-sqr-sqrt44.7
Applied difference-of-sqr-144.7
Taylor expanded around 0 45.8
Applied simplify0.4
rmApplied add-cube-cbrt0.4
Applied sqrt-prod0.4
Applied simplify0.4
if 0.00549780709177216 < (* (sqrt (+ (sqrt (exp (* x a))) 1)) (* (sqrt (+ (sqrt (exp (* a x))) 1)) (* (* a x) (+ 1/2 (* 1/8 (* a x)))))) Initial program 0.1
rmApplied add-sqr-sqrt0.1
Applied difference-of-sqr-10.1
rmApplied add-cube-cbrt0.1
Time bar (total: 34.6s)Debug logProfile
herbie shell --seed '#(1070131407 1246090267 3027482374 2150728003 2026520792 2347815650)'
(FPCore (a x)
:name "expax (section 3.5)"
:herbie-target
(if (< (fabs (* a x)) 1/10) (* (* a x) (+ 1 (+ (/ (* a x) 2) (/ (pow (* a x) 2) 6)))) (- (exp (* a x)) 1))
(- (exp (* a x)) 1))