



Bits error versus re




Bits error versus im
Results
| Original | 58.1 |
|---|---|
| Target | 0.3 |
| Herbie | 0.4 |
if (* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))) < -0.05534827214616331Initial program 0.4
rmApplied sub-neg0.4
Applied distribute-lft-in0.5
Applied simplify0.6
if -0.05534827214616331 < (* (* 0.5 (cos re)) (- (exp (- 0 im)) (exp im))) Initial program 58.5
Taylor expanded around 0 0.4
Applied simplify0.4
Time bar (total: 2.6m)Debug logProfile
herbie shell --seed 2018198
(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))))