Average Error: 0.1 → 0.1
Time: 18.0s
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 r121485 = x;
        double r121486 = y;
        double r121487 = cos(r121486);
        double r121488 = r121485 + r121487;
        double r121489 = z;
        double r121490 = sin(r121486);
        double r121491 = r121489 * r121490;
        double r121492 = r121488 - r121491;
        return r121492;
}

double f(double x, double y, double z) {
        double r121493 = x;
        double r121494 = y;
        double r121495 = cos(r121494);
        double r121496 = r121493 + r121495;
        double r121497 = z;
        double r121498 = sin(r121494);
        double r121499 = r121497 * r121498;
        double r121500 = r121496 - r121499;
        return r121500;
}

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