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 r175260 = x;
        double r175261 = y;
        double r175262 = cos(r175261);
        double r175263 = r175260 + r175262;
        double r175264 = z;
        double r175265 = sin(r175261);
        double r175266 = r175264 * r175265;
        double r175267 = r175263 - r175266;
        return r175267;
}

double f(double x, double y, double z) {
        double r175268 = x;
        double r175269 = y;
        double r175270 = cos(r175269);
        double r175271 = r175268 + r175270;
        double r175272 = z;
        double r175273 = sin(r175269);
        double r175274 = r175272 * r175273;
        double r175275 = r175271 - r175274;
        return r175275;
}

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