Average Error: 0.1 → 0.1
Time: 18.8s
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 r113790 = x;
        double r113791 = y;
        double r113792 = sin(r113791);
        double r113793 = r113790 + r113792;
        double r113794 = z;
        double r113795 = cos(r113791);
        double r113796 = r113794 * r113795;
        double r113797 = r113793 + r113796;
        return r113797;
}

double f(double x, double y, double z) {
        double r113798 = x;
        double r113799 = y;
        double r113800 = sin(r113799);
        double r113801 = r113798 + r113800;
        double r113802 = z;
        double r113803 = cos(r113799);
        double r113804 = r113802 * r113803;
        double r113805 = r113801 + r113804;
        return r113805;
}

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