Average Error: 0.0 → 0.0
Time: 4.2s
Precision: binary64
\[\left(x + \sin y\right) + z \cdot \cos y\]
\[x + \left(\sin y + z \cdot \cos y\right)\]
\left(x + \sin y\right) + z \cdot \cos y
x + \left(\sin y + z \cdot \cos y\right)
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
(FPCore (x y z) :precision binary64 (+ x (+ (sin y) (* z (cos y)))))
double code(double x, double y, double z) {
	return ((double) (((double) (x + ((double) sin(y)))) + ((double) (z * ((double) cos(y))))));
}
double code(double x, double y, double z) {
	return ((double) (x + ((double) (((double) sin(y)) + ((double) (z * ((double) 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 Error: 0.0 bits

    \[\left(x + \sin y\right) + z \cdot \cos y\]
  2. SimplifiedError: 0.0 bits

    \[\leadsto \color{blue}{x + \left(\sin y + z \cdot \cos y\right)}\]
  3. Final simplificationError: 0.0 bits

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

Reproduce

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