Average Error: 0.1 → 0.1
Time: 16.9s
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 r125992 = x;
        double r125993 = y;
        double r125994 = cos(r125993);
        double r125995 = r125992 + r125994;
        double r125996 = z;
        double r125997 = sin(r125993);
        double r125998 = r125996 * r125997;
        double r125999 = r125995 - r125998;
        return r125999;
}

double f(double x, double y, double z) {
        double r126000 = x;
        double r126001 = y;
        double r126002 = cos(r126001);
        double r126003 = r126000 + r126002;
        double r126004 = z;
        double r126005 = sin(r126001);
        double r126006 = r126004 * r126005;
        double r126007 = r126003 - r126006;
        return r126007;
}

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