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

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

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

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

Reproduce

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