Average Error: 0.0 → 0.0
Time: 4.2s
Precision: 64
\[\left(x + \sin y\right) + z \cdot \cos y\]
\[\left(x + \sin y\right) + z \cdot \cos y\]
\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y
double f(double x, double y, double z) {
        double r163260 = x;
        double r163261 = y;
        double r163262 = sin(r163261);
        double r163263 = r163260 + r163262;
        double r163264 = z;
        double r163265 = cos(r163261);
        double r163266 = r163264 * r163265;
        double r163267 = r163263 + r163266;
        return r163267;
}

double f(double x, double y, double z) {
        double r163268 = x;
        double r163269 = y;
        double r163270 = sin(r163269);
        double r163271 = r163268 + r163270;
        double r163272 = z;
        double r163273 = cos(r163269);
        double r163274 = r163272 * r163273;
        double r163275 = r163271 + r163274;
        return r163275;
}

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. Final simplification0.0

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

Reproduce

herbie shell --seed 2020081 +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))))