



Bits error versus x




Bits error versus eps
| Original | 37.5 |
|---|---|
| Target | 15.4 |
| Herbie | 14.4 |
if (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) < -4.873817797528772e-31Initial program 36.3
rmApplied tan-sum10.2
rmApplied add-cbrt-cube10.3
Applied add-cbrt-cube10.5
Applied cbrt-undiv10.4
Applied simplify10.4
if -4.873817797528772e-31 < (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) < 4.386919576830508e-21Initial program 39.9
Taylor expanded around 0 16.6
if 4.386919576830508e-21 < (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) Initial program 36.3
rmApplied tan-sum14.5
rmApplied add-cube-cbrt14.7
Applied associate-*r*14.7
Time bar (total: 1.3m)Debug logProfile
herbie shell --seed '#(1070609872 3456127585 2380521889 2328837196 1765472538 734540918)'
(FPCore (x eps)
:name "2tan (problem 3.3.2)"
:herbie-target
(/ (sin eps) (* (cos x) (cos (+ x eps))))
(- (tan (+ x eps)) (tan x)))