



Bits error versus re




Bits error versus im
| Original | 47.4 |
|---|---|
| Target | 12.3 |
| Herbie | 2.6 |
Initial program 47.4
Taylor expanded around 0 2.6
pow expressions.Time bar (total: 3.1m)Debug log
herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o setup:early-exit
(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))))