Average Error: 0.1 → 0.6
Time: 13.7s
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: 13.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3875303194 66372359 3250741962 3836433483 3523271869 3555592491)'
(FPCore (x y z)
  :name "Diagrams.ThreeD.Transform:aboutY from diagrams-lib-1.3.0.3"

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

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