



Bits error versus re




Bits error versus im
| Original | 46.7 |
|---|---|
| Comparison | 11.9 |
| Herbie | 2.6 |
Initial program 46.7
Applied taylor 2.6
Taylor expanded around 0 2.6
Applied simplify 2.6
Time bar (total: 37.9s) Debug log
Please include this information when filing a bug report:
herbie --seed '#(3968841166 4289395207 4220785236 3061720342 1096712026 1693760750)'
(FPCore (re im)
:name "math.cos on complex, imaginary part"
:target
(if (< (fabs im) 1) (- (* (sin re) (+ (+ im (* (* (* 1/6 im) im) im)) (* (* (* (* (* 1/120 im) im) im) im) im)))) (* (* 0.5 (sin re)) (- (exp (- im)) (exp im))))
(* (* 0.5 (sin re)) (- (exp (- im)) (exp im))))