Average Error: 0.1 → 0.1
Time: 16.9s
Precision: 64
\[\left(x + \sin y\right) + z \cdot \cos y\]
\[\left(x + \sin y\right) + z \cdot \cos y\]
\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y
double f(double x, double y, double z) {
        double r93727 = x;
        double r93728 = y;
        double r93729 = sin(r93728);
        double r93730 = r93727 + r93729;
        double r93731 = z;
        double r93732 = cos(r93728);
        double r93733 = r93731 * r93732;
        double r93734 = r93730 + r93733;
        return r93734;
}

double f(double x, double y, double z) {
        double r93735 = x;
        double r93736 = y;
        double r93737 = sin(r93736);
        double r93738 = r93735 + r93737;
        double r93739 = z;
        double r93740 = cos(r93736);
        double r93741 = r93739 * r93740;
        double r93742 = r93738 + r93741;
        return r93742;
}

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 + \sin y\right) + z \cdot \cos y\]
  2. Final simplification0.1

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

Reproduce

herbie shell --seed 2019326 +o rules:numerics
(FPCore (x y z)
  :name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
  :precision binary64
  (+ (+ x (sin y)) (* z (cos y))))