Average Error: 30.6 → 0.4
Time: 17.1s
Precision: 64
Internal precision: 2432
\[\frac{1 - \cos x}{{x}^2}\]
\[\frac{\sin x \cdot \frac{\sin x}{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.6

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

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

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

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

    \[\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/ 14.8

    \[\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 14.7

    \[\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{\sin x \cdot \frac{\sin x}{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{\sin x \cdot \frac{\sin x}{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{\sin x \cdot \frac{\sin x}{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: 17.1s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1067773715 2765207660 218871639 3688798924 2755544087 2054563380)'
(FPCore (x)
  :name "cos2 (problem 3.4.1)"
  (/ (- 1 (cos x)) (sqr x)))