



Bits error versus x




Bits error versus eps
| Original | 36.5 |
|---|---|
| Target | 14.8 |
| Herbie | 0.5 |
if (* 2 (* (* (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2))))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))))) < -0.0023139190919417196 or 4.918498226073161e-09 < (* 2 (* (* (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2))))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))))) Initial program 29.1
rmApplied sin-sum0.5
if -0.0023139190919417196 < (* 2 (* (* (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2))))) (cbrt (* (sin (/ eps 2)) (cos (/ (+ x (+ eps x)) 2)))))) < 4.918498226073161e-09Initial program 44.4
rmApplied diff-sin44.4
Applied simplify0.5
rmApplied add-cbrt-cube0.7
Applied simplify0.7
Taylor expanded around inf 0.7
Applied simplify0.5
Time bar (total: 47.1s)Debug logProfile
herbie shell --seed '#(1070991898 1055468627 4280279443 640792587 928206309 3646738750)'
(FPCore (x eps)
:name "2sin (example 3.3)"
:herbie-target
(* 2 (* (cos (+ x (/ eps 2))) (sin (/ eps 2))))
(- (sin (+ x eps)) (sin x)))