Average Error: 0.1 → 0.1
Time: 5.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 r155894 = x;
        double r155895 = y;
        double r155896 = cos(r155895);
        double r155897 = r155894 + r155896;
        double r155898 = z;
        double r155899 = sin(r155895);
        double r155900 = r155898 * r155899;
        double r155901 = r155897 - r155900;
        return r155901;
}

double f(double x, double y, double z) {
        double r155902 = x;
        double r155903 = y;
        double r155904 = cos(r155903);
        double r155905 = r155902 + r155904;
        double r155906 = z;
        double r155907 = sin(r155903);
        double r155908 = r155906 * r155907;
        double r155909 = r155905 - r155908;
        return r155909;
}

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