Average Error: 0.1 → 0.1
Time: 4.9s
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 r163527 = x;
        double r163528 = y;
        double r163529 = cos(r163528);
        double r163530 = r163527 + r163529;
        double r163531 = z;
        double r163532 = sin(r163528);
        double r163533 = r163531 * r163532;
        double r163534 = r163530 - r163533;
        return r163534;
}

double f(double x, double y, double z) {
        double r163535 = x;
        double r163536 = y;
        double r163537 = cos(r163536);
        double r163538 = r163535 + r163537;
        double r163539 = z;
        double r163540 = sin(r163536);
        double r163541 = r163539 * r163540;
        double r163542 = r163538 - r163541;
        return r163542;
}

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