



Bits error versus re




Bits error versus im
| Original | 58.8 |
|---|---|
| Target | 10.5 |
| Herbie | 0.2 |
Initial program 58.8
Applied simplify58.8
Taylor expanded around 0 0.2
pow expressions.Time bar (total: 2.8m)Debug logProfile
herbie shell --seed '#(1062930989 876886121 3990119081 3032829768 3060892583 1929069376)'
(FPCore (re im)
:name "math.sin on complex, imaginary part"
:herbie-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))))