Average Error: 0.1 → 0.1
Time: 5.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 r181629 = x;
        double r181630 = y;
        double r181631 = cos(r181630);
        double r181632 = r181629 + r181631;
        double r181633 = z;
        double r181634 = sin(r181630);
        double r181635 = r181633 * r181634;
        double r181636 = r181632 - r181635;
        return r181636;
}

double f(double x, double y, double z) {
        double r181637 = x;
        double r181638 = y;
        double r181639 = cos(r181638);
        double r181640 = r181637 + r181639;
        double r181641 = z;
        double r181642 = sin(r181638);
        double r181643 = r181641 * r181642;
        double r181644 = r181640 - r181643;
        return r181644;
}

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