Average Error: 0.1 → 0.1
Time: 6.4s
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 r182440 = x;
        double r182441 = y;
        double r182442 = sin(r182441);
        double r182443 = r182440 + r182442;
        double r182444 = z;
        double r182445 = cos(r182441);
        double r182446 = r182444 * r182445;
        double r182447 = r182443 + r182446;
        return r182447;
}

double f(double x, double y, double z) {
        double r182448 = x;
        double r182449 = y;
        double r182450 = sin(r182449);
        double r182451 = r182448 + r182450;
        double r182452 = z;
        double r182453 = cos(r182449);
        double r182454 = r182452 * r182453;
        double r182455 = r182451 + r182454;
        return r182455;
}

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