Average Error: 0.1 → 0.1
Time: 16.1s
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 r119305 = x;
        double r119306 = y;
        double r119307 = cos(r119306);
        double r119308 = r119305 + r119307;
        double r119309 = z;
        double r119310 = sin(r119306);
        double r119311 = r119309 * r119310;
        double r119312 = r119308 - r119311;
        return r119312;
}

double f(double x, double y, double z) {
        double r119313 = x;
        double r119314 = y;
        double r119315 = cos(r119314);
        double r119316 = r119313 + r119315;
        double r119317 = z;
        double r119318 = sin(r119314);
        double r119319 = r119317 * r119318;
        double r119320 = r119316 - r119319;
        return r119320;
}

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