


Bits error versus x



Bits error versus cos



Bits error versus sin
if (/ (cos (* 2 x)) (* (* (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin)))) (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin))))) (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin)))))) < 4.920500141204781e-288Initial program 16.7
rmApplied add-sqr-sqrt16.7
Applied simplify16.7
Applied simplify2.4
rmApplied associate-/r*2.0
rmApplied add-sqr-sqrt2.0
Applied associate-/r*2.0
Taylor expanded around inf 2.0
Applied simplify1.0
if 4.920500141204781e-288 < (/ (cos (* 2 x)) (* (* (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin)))) (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin))))) (cbrt (* (fabs (* (* x cos) sin)) (fabs (* (* x cos) sin)))))) Initial program 43.9
rmApplied add-sqr-sqrt44.0
Applied simplify43.8
Applied simplify3.6
rmApplied cos-23.6
Applied div-sub3.6
Time bar (total: 44.9s)Debug logProfile
herbie shell --seed '#(1070960995 739739648 2531964651 3069671617 351857262 3877178482)'
(FPCore (x cos sin)
:name "cos(2*x)/(cos^2(x)*sin^2(x))"
(/ (cos (* 2 x)) (* (pow cos 2) (* (* x (pow sin 2)) x))))