



Bits error versus re




Bits error versus im
| Original | 46.9 |
|---|---|
| Comparison | 11.8 |
| Herbie | 2.5 |
Initial program 46.9
Applied taylor 2.5
Taylor expanded around 0 2.5
Applied simplify 2.5
Applied taylor 2.5
Taylor expanded around 0 2.5
Applied simplify 2.5
Time bar (total: 15.8s) Debug logProfile
Please include this information when filing a bug report:
herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(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))))