Average Error: 0.1 → 0.1
Time: 19.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 r109941 = x;
        double r109942 = y;
        double r109943 = cos(r109942);
        double r109944 = r109941 + r109943;
        double r109945 = z;
        double r109946 = sin(r109942);
        double r109947 = r109945 * r109946;
        double r109948 = r109944 - r109947;
        return r109948;
}

double f(double x, double y, double z) {
        double r109949 = x;
        double r109950 = y;
        double r109951 = cos(r109950);
        double r109952 = r109949 + r109951;
        double r109953 = z;
        double r109954 = sin(r109950);
        double r109955 = r109953 * r109954;
        double r109956 = r109952 - r109955;
        return r109956;
}

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