Average Error: 0.1 → 0.1
Time: 5.8s
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 r199361 = x;
        double r199362 = y;
        double r199363 = cos(r199362);
        double r199364 = r199361 + r199363;
        double r199365 = z;
        double r199366 = sin(r199362);
        double r199367 = r199365 * r199366;
        double r199368 = r199364 - r199367;
        return r199368;
}

double f(double x, double y, double z) {
        double r199369 = x;
        double r199370 = y;
        double r199371 = cos(r199370);
        double r199372 = r199369 + r199371;
        double r199373 = z;
        double r199374 = sin(r199370);
        double r199375 = r199373 * r199374;
        double r199376 = r199372 - r199375;
        return r199376;
}

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