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

    \[\left(x + \sin y\right) + z \cdot \cos y\]
  2. Using strategy rm
  3. Applied associate-+l+_binary640.1

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

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

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

Reproduce

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