Average Error: 0.0 → 0.0
Time: 5.2s
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 r172093 = x;
        double r172094 = y;
        double r172095 = sin(r172094);
        double r172096 = r172093 + r172095;
        double r172097 = z;
        double r172098 = cos(r172094);
        double r172099 = r172097 * r172098;
        double r172100 = r172096 + r172099;
        return r172100;
}

double f(double x, double y, double z) {
        double r172101 = x;
        double r172102 = y;
        double r172103 = sin(r172102);
        double r172104 = r172101 + r172103;
        double r172105 = z;
        double r172106 = cos(r172102);
        double r172107 = r172105 * r172106;
        double r172108 = r172104 + r172107;
        return r172108;
}

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.0

    \[\left(x + \sin y\right) + z \cdot \cos y\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019353 +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))))