



Bits error versus re




Bits error versus im
Results
| Original | 57.9 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
if (/ (- (* 1/60 (pow im 5)) (+ (* 2 im) (* 1/3 (pow im 3)))) (- (- (* (* 1/60 (pow im 5)) (* 1/60 (pow im 5))) (* (+ (* 2 im) (* 1/3 (pow im 3))) (+ (* 2 im) (* 1/3 (pow im 3))))))) < -5.541534881057595 or 2.2213473541193385 < (/ (- (* 1/60 (pow im 5)) (+ (* 2 im) (* 1/3 (pow im 3)))) (- (- (* (* 1/60 (pow im 5)) (* 1/60 (pow im 5))) (* (+ (* 2 im) (* 1/3 (pow im 3))) (+ (* 2 im) (* 1/3 (pow im 3))))))) Initial program 58.7
Taylor expanded around 0 0.2
if -5.541534881057595 < (/ (- (* 1/60 (pow im 5)) (+ (* 2 im) (* 1/3 (pow im 3)))) (- (- (* (* 1/60 (pow im 5)) (* 1/60 (pow im 5))) (* (+ (* 2 im) (* 1/3 (pow im 3))) (+ (* 2 im) (* 1/3 (pow im 3))))))) < 2.2213473541193385Initial program 0.3
Initial simplification0.4
Final simplification0.2
Time bar (total: 1.1m)Debug logProfile
herbie shell --seed 2018215
(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))))