Average Error: 0.1 → 0.1
Time: 18.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 r140048 = x;
        double r140049 = y;
        double r140050 = cos(r140049);
        double r140051 = r140048 + r140050;
        double r140052 = z;
        double r140053 = sin(r140049);
        double r140054 = r140052 * r140053;
        double r140055 = r140051 - r140054;
        return r140055;
}

double f(double x, double y, double z) {
        double r140056 = x;
        double r140057 = y;
        double r140058 = cos(r140057);
        double r140059 = r140056 + r140058;
        double r140060 = z;
        double r140061 = sin(r140057);
        double r140062 = r140060 * r140061;
        double r140063 = r140059 - r140062;
        return r140063;
}

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