Average Error: 0.1 → 0.6
Time: 5.3s
Precision: 64
\[x \cdot \sin y + z \cdot \cos y\]
\[\left(x \cdot \left(\sqrt[3]{\sin y} \cdot \sqrt[3]{\sin y}\right)\right) \cdot \sqrt[3]{\sin y} + z \cdot \cos y\]
x \cdot \sin y + z \cdot \cos y
\left(x \cdot \left(\sqrt[3]{\sin y} \cdot \sqrt[3]{\sin y}\right)\right) \cdot \sqrt[3]{\sin y} + z \cdot \cos y
double code(double x, double y, double z) {
	return ((x * sin(y)) + (z * cos(y)));
}
double code(double x, double y, double z) {
	return (((x * (cbrt(sin(y)) * cbrt(sin(y)))) * cbrt(sin(y))) + (z * cos(y)));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x \cdot \sin y + z \cdot \cos y\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.6

    \[\leadsto x \cdot \color{blue}{\left(\left(\sqrt[3]{\sin y} \cdot \sqrt[3]{\sin y}\right) \cdot \sqrt[3]{\sin y}\right)} + z \cdot \cos y\]
  4. Applied associate-*r*0.6

    \[\leadsto \color{blue}{\left(x \cdot \left(\sqrt[3]{\sin y} \cdot \sqrt[3]{\sin y}\right)\right) \cdot \sqrt[3]{\sin y}} + z \cdot \cos y\]
  5. Final simplification0.6

    \[\leadsto \left(x \cdot \left(\sqrt[3]{\sin y} \cdot \sqrt[3]{\sin y}\right)\right) \cdot \sqrt[3]{\sin y} + z \cdot \cos y\]

Reproduce

herbie shell --seed 2020053 
(FPCore (x y z)
  :name "Diagrams.ThreeD.Transform:aboutX from diagrams-lib-1.3.0.3, B"
  :precision binary64
  (+ (* x (sin y)) (* z (cos y))))