Average Error: 0.1 → 0.1
Time: 4.4s
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 r172609 = x;
        double r172610 = y;
        double r172611 = cos(r172610);
        double r172612 = r172609 + r172611;
        double r172613 = z;
        double r172614 = sin(r172610);
        double r172615 = r172613 * r172614;
        double r172616 = r172612 - r172615;
        return r172616;
}

double f(double x, double y, double z) {
        double r172617 = x;
        double r172618 = y;
        double r172619 = cos(r172618);
        double r172620 = r172617 + r172619;
        double r172621 = z;
        double r172622 = sin(r172618);
        double r172623 = r172621 * r172622;
        double r172624 = r172620 - r172623;
        return r172624;
}

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