Average Error: 0.1 → 0.6
Time: 12.8s
Precision: 64
Internal precision: 128
\[x \cdot \cos y - z \cdot \sin y\]
\[x \cdot \cos y - {\left(\sqrt[3]{z \cdot \sin y}\right)}^3\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original0.1
Comparison0.1
Herbie0.6
\[ x \cdot \cos y - z \cdot \sin y \]

Derivation

  1. Initial program 0.1

    \[x \cdot \cos y - z \cdot \sin y\]
  2. Using strategy rm
  3. Applied add-cube-cbrt 0.6

    \[\leadsto x \cdot \cos y - \color{blue}{{\left(\sqrt[3]{z \cdot \sin y}\right)}^3}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 12.8s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1563200480 311723711 1599037954 3281404175 930480859 2362884213)'
(FPCore (x y z)
  :name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, A"

  :target
  (- (* x (cos y)) (* z (sin y)))

  (- (* x (cos y)) (* z (sin y))))