Average Error: 0.1 → 0.1
Time: 5.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 r165262 = x;
        double r165263 = y;
        double r165264 = cos(r165263);
        double r165265 = r165262 + r165264;
        double r165266 = z;
        double r165267 = sin(r165263);
        double r165268 = r165266 * r165267;
        double r165269 = r165265 - r165268;
        return r165269;
}

double f(double x, double y, double z) {
        double r165270 = x;
        double r165271 = y;
        double r165272 = cos(r165271);
        double r165273 = r165270 + r165272;
        double r165274 = z;
        double r165275 = sin(r165271);
        double r165276 = r165274 * r165275;
        double r165277 = r165273 - r165276;
        return r165277;
}

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