Average Error: 0.0 → 0.0
Time: 10.3s
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 r163363 = x;
        double r163364 = y;
        double r163365 = cos(r163364);
        double r163366 = r163363 + r163365;
        double r163367 = z;
        double r163368 = sin(r163364);
        double r163369 = r163367 * r163368;
        double r163370 = r163366 - r163369;
        return r163370;
}

double f(double x, double y, double z) {
        double r163371 = x;
        double r163372 = y;
        double r163373 = cos(r163372);
        double r163374 = r163371 + r163373;
        double r163375 = z;
        double r163376 = sin(r163372);
        double r163377 = r163375 * r163376;
        double r163378 = r163374 - r163377;
        return r163378;
}

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.0

    \[\left(x + \cos y\right) - z \cdot \sin y\]
  2. Final simplification0.0

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

Reproduce

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