



Bits error versus x




Bits error versus eps
| Original | 37.1 |
|---|---|
| Target | 15.6 |
| Herbie | 14.1 |
if (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) < -3.1068469719484584e-28Initial program 37.5
rmApplied tan-sum10.4
rmApplied tan-quot10.5
Applied tan-quot10.5
Applied frac-times10.5
rmApplied tan-quot10.4
Applied frac-sub10.5
if -3.1068469719484584e-28 < (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) < 1.8442314600736136e-13Initial program 38.0
Taylor expanded around 0 16.0
if 1.8442314600736136e-13 < (+ eps (+ (* (pow eps 3) (pow x 2)) (* (pow eps 2) x))) Initial program 36.2
rmApplied tan-sum14.0
rmApplied clear-num14.1
Time bar (total: 1.4m)Debug logProfile
herbie shell --seed '#(1070833653 108281690 3330367898 3632331308 3494323072 43156186)'
(FPCore (x eps)
:name "2tan (problem 3.3.2)"
:herbie-target
(/ (sin eps) (* (cos x) (cos (+ x eps))))
(- (tan (+ x eps)) (tan x)))