



Bits error versus x
| Original | 60.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.4 |
Initial program 60.0
Taylor expanded around 0 0.3
rmApplied add-log-exp0.4
pow expressions.Time bar (total: 2.6m)Debug log
herbie shell --seed '#(2094665535 3654809497 1731717781 3082199462 566033875 575777438)'
(FPCore (x)
:name "invcot (example 3.9)"
:pre (and (< -0.026 x) (< x 0.026))
:herbie-target
(if (< (fabs x) 0.026) (* (/ x 3) (+ 1 (/ (* x x) 15))) (- (/ 1 x) (/ 1 (tan x))))
(- (/ 1 x) (/ 1 (tan x))))