Average Error: 0.0 → 0.0
Time: 11.2s
Precision: 64
\[\left(x + \cos y\right) - z \cdot \sin y\]
\[\left(x + \cos y\right) - z \cdot \sin y\]
\left(x + \cos y\right) - z \cdot \sin y
\left(x + \cos y\right) - z \cdot \sin y
double f(double x, double y, double z) {
        double r180212 = x;
        double r180213 = y;
        double r180214 = cos(r180213);
        double r180215 = r180212 + r180214;
        double r180216 = z;
        double r180217 = sin(r180213);
        double r180218 = r180216 * r180217;
        double r180219 = r180215 - r180218;
        return r180219;
}

double f(double x, double y, double z) {
        double r180220 = x;
        double r180221 = y;
        double r180222 = cos(r180221);
        double r180223 = r180220 + r180222;
        double r180224 = z;
        double r180225 = sin(r180221);
        double r180226 = r180224 * r180225;
        double r180227 = r180223 - r180226;
        return r180227;
}

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 + \cos y\right) - z \cdot \sin y\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2020045 +o rules:numerics
(FPCore (x y z)
  :name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
  :precision binary64
  (- (+ x (cos y)) (* z (sin y))))