Average Error: 0.0 → 0.0
Time: 4.1s
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 r141859 = x;
        double r141860 = y;
        double r141861 = sin(r141860);
        double r141862 = r141859 + r141861;
        double r141863 = z;
        double r141864 = cos(r141860);
        double r141865 = r141863 * r141864;
        double r141866 = r141862 + r141865;
        return r141866;
}

double f(double x, double y, double z) {
        double r141867 = x;
        double r141868 = y;
        double r141869 = sin(r141868);
        double r141870 = r141867 + r141869;
        double r141871 = z;
        double r141872 = cos(r141868);
        double r141873 = r141871 * r141872;
        double r141874 = r141870 + r141873;
        return r141874;
}

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 2020062 +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))))