



Bits error versus re




Bits error versus im
Results
| Original | 44.1 |
|---|---|
| Target | 0.3 |
| Herbie | 0.8 |
Initial program 44.1
Taylor expanded around 0 0.8
Time bar (total: 3.9m)Debug logProfile
herbie shell --seed '#(1072743783 989954326 4239155542 3782239461 3602631542 1719177920)'
(FPCore (re im)
:name "math.cos on complex, imaginary part"
:herbie-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))))