Average Error: 30.8 → 0.4
Time: 16.0s
Precision: 64
Internal precision: 2432
\[\frac{1 - \cos x}{{x}^2}\]
\[\frac{\frac{\sin x}{x} \cdot \sin x}{1 + {\left(\cos x\right)}^3} \cdot \frac{\left(1 - \cos x\right) + {\left(\cos x\right)}^2}{x}\]

Error

Bits error versus x

Derivation

  1. Initial program 30.8

    \[\frac{1 - \cos x}{{x}^2}\]
  2. Using strategy rm
  3. Applied flip-- 30.9

    \[\leadsto \frac{\color{blue}{\frac{{1}^2 - {\left(\cos x\right)}^2}{1 + \cos x}}}{{x}^2}\]
  4. Applied simplify 15.5

    \[\leadsto \frac{\frac{\color{blue}{\sin x \cdot \sin x}}{1 + \cos x}}{{x}^2}\]
  5. Using strategy rm
  6. Applied square-mult 15.5

    \[\leadsto \frac{\frac{\sin x \cdot \sin x}{1 + \cos x}}{\color{blue}{x \cdot x}}\]
  7. Applied flip3-+ 15.5

    \[\leadsto \frac{\frac{\sin x \cdot \sin x}{\color{blue}{\frac{{1}^{3} + {\left(\cos x\right)}^{3}}{{1}^2 + \left({\left(\cos x\right)}^2 - 1 \cdot \cos x\right)}}}}{x \cdot x}\]
  8. Applied associate-/r/ 15.5

    \[\leadsto \frac{\color{blue}{\frac{\sin x \cdot \sin x}{{1}^{3} + {\left(\cos x\right)}^{3}} \cdot \left({1}^2 + \left({\left(\cos x\right)}^2 - 1 \cdot \cos x\right)\right)}}{x \cdot x}\]
  9. Applied times-frac 15.4

    \[\leadsto \color{blue}{\frac{\frac{\sin x \cdot \sin x}{{1}^{3} + {\left(\cos x\right)}^{3}}}{x} \cdot \frac{{1}^2 + \left({\left(\cos x\right)}^2 - 1 \cdot \cos x\right)}{x}}\]
  10. Applied simplify 0.4

    \[\leadsto \color{blue}{\frac{\frac{\sin x}{x} \cdot \sin x}{1 + {\left(\cos x\right)}^3}} \cdot \frac{{1}^2 + \left({\left(\cos x\right)}^2 - 1 \cdot \cos x\right)}{x}\]
  11. Applied simplify 0.4

    \[\leadsto \frac{\frac{\sin x}{x} \cdot \sin x}{1 + {\left(\cos x\right)}^3} \cdot \color{blue}{\frac{\cos x \cdot \cos x + \left(1 - \cos x\right)}{x}}\]
  12. Applied simplify 0.4

    \[\leadsto \frac{\frac{\sin x}{x} \cdot \sin x}{1 + {\left(\cos x\right)}^3} \cdot \frac{\color{blue}{\left(1 - \cos x\right) + {\left(\cos x\right)}^2}}{x}\]
  13. Removed slow pow expressions

Runtime

Time bar (total: 16.0s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (x)
  :name "cos2 (problem 3.4.1)"
  (/ (- 1 (cos x)) (sqr x)))