Average Error: 0.0 → 0.0
Time: 10.2s
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 r225916 = x;
        double r225917 = y;
        double r225918 = cos(r225917);
        double r225919 = r225916 + r225918;
        double r225920 = z;
        double r225921 = sin(r225917);
        double r225922 = r225920 * r225921;
        double r225923 = r225919 - r225922;
        return r225923;
}

double f(double x, double y, double z) {
        double r225924 = x;
        double r225925 = y;
        double r225926 = cos(r225925);
        double r225927 = r225924 + r225926;
        double r225928 = z;
        double r225929 = sin(r225925);
        double r225930 = r225928 * r225929;
        double r225931 = r225927 - r225930;
        return r225931;
}

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.0

    \[\left(x + \cos y\right) - z \cdot \sin y\]
  2. Final simplification0.0

    \[\leadsto \left(x + \cos y\right) - z \cdot \sin y\]

Reproduce

herbie shell --seed 2019350 +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))))