Average Error: 0.1 → 0.1
Time: 19.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 r90995 = x;
        double r90996 = y;
        double r90997 = cos(r90996);
        double r90998 = r90995 + r90997;
        double r90999 = z;
        double r91000 = sin(r90996);
        double r91001 = r90999 * r91000;
        double r91002 = r90998 - r91001;
        return r91002;
}

double f(double x, double y, double z) {
        double r91003 = x;
        double r91004 = y;
        double r91005 = cos(r91004);
        double r91006 = r91003 + r91005;
        double r91007 = z;
        double r91008 = sin(r91004);
        double r91009 = r91007 * r91008;
        double r91010 = r91006 - r91009;
        return r91010;
}

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