Average Error: 0.1 → 0.1
Time: 17.7s
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 r126709 = x;
        double r126710 = y;
        double r126711 = cos(r126710);
        double r126712 = r126709 + r126711;
        double r126713 = z;
        double r126714 = sin(r126710);
        double r126715 = r126713 * r126714;
        double r126716 = r126712 - r126715;
        return r126716;
}

double f(double x, double y, double z) {
        double r126717 = x;
        double r126718 = y;
        double r126719 = cos(r126718);
        double r126720 = r126717 + r126719;
        double r126721 = z;
        double r126722 = sin(r126718);
        double r126723 = r126721 * r126722;
        double r126724 = r126720 - r126723;
        return r126724;
}

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