Average Error: 27.1 → 2.7
Time: 43.6s
Precision: 64
Internal Precision: 576
\[\frac{\cos \left(2 \cdot x\right)}{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)}\]
\[\frac{\sqrt[3]{\cos \left(2 \cdot x\right)} \cdot \sqrt[3]{\cos \left(2 \cdot x\right)}}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|} \cdot \frac{\sqrt[3]{\cos \left(2 \cdot x\right)}}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|}\]

Error

Bits error versus x

Bits error versus cos

Bits error versus sin

Derivation

  1. Initial program 27.1

    \[\frac{\cos \left(2 \cdot x\right)}{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt27.2

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\color{blue}{\sqrt{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)} \cdot \sqrt{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)}}}\]
  4. Applied simplify27.1

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\color{blue}{\left|\left(x \cdot cos\right) \cdot sin\right|} \cdot \sqrt{{cos}^{2} \cdot \left(\left(x \cdot {sin}^{2}\right) \cdot x\right)}}\]
  5. Applied simplify3.0

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\left|\left(x \cdot cos\right) \cdot sin\right| \cdot \color{blue}{\left|\left(x \cdot cos\right) \cdot sin\right|}}\]
  6. Using strategy rm
  7. Applied add-sqr-sqrt3.0

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\color{blue}{\sqrt{\left|\left(x \cdot cos\right) \cdot sin\right| \cdot \left|\left(x \cdot cos\right) \cdot sin\right|} \cdot \sqrt{\left|\left(x \cdot cos\right) \cdot sin\right| \cdot \left|\left(x \cdot cos\right) \cdot sin\right|}}}\]
  8. Applied simplify5.0

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\color{blue}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|} \cdot \sqrt{\left|\left(x \cdot cos\right) \cdot sin\right| \cdot \left|\left(x \cdot cos\right) \cdot sin\right|}}\]
  9. Applied simplify2.8

    \[\leadsto \frac{\cos \left(2 \cdot x\right)}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right| \cdot \color{blue}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|}}\]
  10. Using strategy rm
  11. Applied add-cube-cbrt2.9

    \[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\cos \left(2 \cdot x\right)} \cdot \sqrt[3]{\cos \left(2 \cdot x\right)}\right) \cdot \sqrt[3]{\cos \left(2 \cdot x\right)}}}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right| \cdot \left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|}\]
  12. Applied times-frac2.7

    \[\leadsto \color{blue}{\frac{\sqrt[3]{\cos \left(2 \cdot x\right)} \cdot \sqrt[3]{\cos \left(2 \cdot x\right)}}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|} \cdot \frac{\sqrt[3]{\cos \left(2 \cdot x\right)}}{\left|\left|\left(sin \cdot cos\right) \cdot x\right|\right|}}\]

Runtime

Time bar (total: 43.6s)Debug logProfile

herbie shell --seed '#(1071948828 1180510430 2986424009 997076509 406109801 420189285)' 
(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))))