Average Error: 0.1 → 0.1
Time: 15.5s
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 r127087 = x;
        double r127088 = y;
        double r127089 = cos(r127088);
        double r127090 = r127087 + r127089;
        double r127091 = z;
        double r127092 = sin(r127088);
        double r127093 = r127091 * r127092;
        double r127094 = r127090 - r127093;
        return r127094;
}

double f(double x, double y, double z) {
        double r127095 = x;
        double r127096 = y;
        double r127097 = cos(r127096);
        double r127098 = r127095 + r127097;
        double r127099 = z;
        double r127100 = sin(r127096);
        double r127101 = r127099 * r127100;
        double r127102 = r127098 - r127101;
        return r127102;
}

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