Average Error: 0.0 → 0.5
Time: 4.8s
Precision: 64
\[\left(x + \cos y\right) - z \cdot \sin y\]
\[\left(x + \cos y\right) - \left(\left(\sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}} \cdot \sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}}\right) \cdot \sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}}\right) \cdot \sqrt[3]{z \cdot \sin y}\]
\left(x + \cos y\right) - z \cdot \sin y
\left(x + \cos y\right) - \left(\left(\sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}} \cdot \sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}}\right) \cdot \sqrt[3]{\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}}\right) \cdot \sqrt[3]{z \cdot \sin y}
double code(double x, double y, double z) {
	return ((x + cos(y)) - (z * sin(y)));
}
double code(double x, double y, double z) {
	return ((x + cos(y)) - (((cbrt((cbrt((z * sin(y))) * cbrt((z * sin(y))))) * cbrt((cbrt((z * sin(y))) * cbrt((z * sin(y)))))) * cbrt((cbrt((z * sin(y))) * cbrt((z * sin(y)))))) * cbrt((z * sin(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.0

    \[\left(x + \cos y\right) - z \cdot \sin y\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.4

    \[\leadsto \left(x + \cos y\right) - \color{blue}{\left(\sqrt[3]{z \cdot \sin y} \cdot \sqrt[3]{z \cdot \sin y}\right) \cdot \sqrt[3]{z \cdot \sin y}}\]
  4. Using strategy rm
  5. Applied add-cube-cbrt0.5

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

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

Reproduce

herbie shell --seed 2020102 +o rules:numerics
(FPCore (x y z)
  :name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
  :precision binary64
  (- (+ x (cos y)) (* z (sin y))))