Average Error: 0.1 → 0.1
Time: 6.5s
Precision: binary64
\[\left(x + \cos y\right) - z \cdot \sin y \]
\[\left(x + \cos y\right) - \sin y \cdot z \]
\left(x + \cos y\right) - z \cdot \sin y
\left(x + \cos y\right) - \sin y \cdot z
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* (sin y) z)))
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)) - (sin(y) * z);
}

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

    \[\left(x + \cos y\right) - z \cdot \sin y \]
  2. Applied add-sqr-sqrt_binary6428.4

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

    \[\leadsto \left(x + \cos y\right) - \sqrt{z \cdot \sin y} \cdot \color{blue}{\left(1 \cdot \sqrt{z \cdot \sin y}\right)} \]
  4. Applied *-un-lft-identity_binary6428.4

    \[\leadsto \left(x + \cos y\right) - \color{blue}{\left(1 \cdot \sqrt{z \cdot \sin y}\right)} \cdot \left(1 \cdot \sqrt{z \cdot \sin y}\right) \]
  5. Applied swap-sqr_binary6428.4

    \[\leadsto \left(x + \cos y\right) - \color{blue}{\left(1 \cdot 1\right) \cdot \left(\sqrt{z \cdot \sin y} \cdot \sqrt{z \cdot \sin y}\right)} \]
  6. Simplified28.4

    \[\leadsto \left(x + \cos y\right) - \color{blue}{1} \cdot \left(\sqrt{z \cdot \sin y} \cdot \sqrt{z \cdot \sin y}\right) \]
  7. Simplified0.1

    \[\leadsto \left(x + \cos y\right) - 1 \cdot \color{blue}{\left(\sin y \cdot z\right)} \]
  8. Final simplification0.1

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

Reproduce

herbie shell --seed 2021313 
(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))))