Average Error: 0.1 → 0.1
Time: 5.9s
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 r194210 = x;
        double r194211 = y;
        double r194212 = sin(r194211);
        double r194213 = r194210 + r194212;
        double r194214 = z;
        double r194215 = cos(r194211);
        double r194216 = r194214 * r194215;
        double r194217 = r194213 + r194216;
        return r194217;
}

double f(double x, double y, double z) {
        double r194218 = x;
        double r194219 = y;
        double r194220 = sin(r194219);
        double r194221 = r194218 + r194220;
        double r194222 = z;
        double r194223 = cos(r194219);
        double r194224 = r194222 * r194223;
        double r194225 = r194221 + r194224;
        return r194225;
}

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