Average Error: 0.1 → 0.1
Time: 4.7s
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 r167227 = x;
        double r167228 = y;
        double r167229 = sin(r167228);
        double r167230 = r167227 + r167229;
        double r167231 = z;
        double r167232 = cos(r167228);
        double r167233 = r167231 * r167232;
        double r167234 = r167230 + r167233;
        return r167234;
}

double f(double x, double y, double z) {
        double r167235 = x;
        double r167236 = y;
        double r167237 = sin(r167236);
        double r167238 = r167235 + r167237;
        double r167239 = z;
        double r167240 = cos(r167236);
        double r167241 = r167239 * r167240;
        double r167242 = r167238 + r167241;
        return r167242;
}

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

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

Reproduce

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