Average Error: 0.1 → 0.1
Time: 4.6s
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 r153251 = x;
        double r153252 = y;
        double r153253 = cos(r153252);
        double r153254 = r153251 + r153253;
        double r153255 = z;
        double r153256 = sin(r153252);
        double r153257 = r153255 * r153256;
        double r153258 = r153254 - r153257;
        return r153258;
}

double f(double x, double y, double z) {
        double r153259 = x;
        double r153260 = y;
        double r153261 = cos(r153260);
        double r153262 = r153259 + r153261;
        double r153263 = z;
        double r153264 = sin(r153260);
        double r153265 = r153263 * r153264;
        double r153266 = r153262 - r153265;
        return r153266;
}

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