Average Error: 0.0 → 0.0
Time: 4.5s
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 r173001 = x;
        double r173002 = y;
        double r173003 = sin(r173002);
        double r173004 = r173001 + r173003;
        double r173005 = z;
        double r173006 = cos(r173002);
        double r173007 = r173005 * r173006;
        double r173008 = r173004 + r173007;
        return r173008;
}

double f(double x, double y, double z) {
        double r173009 = x;
        double r173010 = y;
        double r173011 = sin(r173010);
        double r173012 = r173009 + r173011;
        double r173013 = z;
        double r173014 = cos(r173010);
        double r173015 = r173013 * r173014;
        double r173016 = r173012 + r173015;
        return r173016;
}

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