



Bits error versus re




Bits error versus im
| Original | 59.0 |
|---|---|
| Comparison | 9.9 |
| Herbie | 0.2 |
Initial program 59.0
Applied simplify 59.0
Applied taylor 0.2
Taylor expanded around 0 0.2
Time bar (total: 39.7s) Debug log
Please include this information when filing a bug report:
herbie --seed '#(2686265705 1678913877 395117673 1068554205 4129704838 4233965609)'
(FPCore (re im)
:name "math.sin on complex, imaginary part"
:target
(if (< (fabs im) 1) (- (* (cos re) (+ (+ im (* (* (* 1/6 im) im) im)) (* (* (* (* (* 1/120 im) im) im) im) im)))) (* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))))
(* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))))