Average Error: 0.1 → 0.1
Time: 5.7s
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 r188207 = x;
        double r188208 = y;
        double r188209 = cos(r188208);
        double r188210 = r188207 + r188209;
        double r188211 = z;
        double r188212 = sin(r188208);
        double r188213 = r188211 * r188212;
        double r188214 = r188210 - r188213;
        return r188214;
}

double f(double x, double y, double z) {
        double r188215 = x;
        double r188216 = y;
        double r188217 = cos(r188216);
        double r188218 = r188215 + r188217;
        double r188219 = z;
        double r188220 = sin(r188216);
        double r188221 = r188219 * r188220;
        double r188222 = r188218 - r188221;
        return r188222;
}

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

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

Reproduce

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