Average Error: 0.1 → 0.1
Time: 6.5s
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 r151717 = x;
        double r151718 = y;
        double r151719 = sin(r151718);
        double r151720 = r151717 + r151719;
        double r151721 = z;
        double r151722 = cos(r151718);
        double r151723 = r151721 * r151722;
        double r151724 = r151720 + r151723;
        return r151724;
}

double f(double x, double y, double z) {
        double r151725 = x;
        double r151726 = y;
        double r151727 = sin(r151726);
        double r151728 = r151725 + r151727;
        double r151729 = z;
        double r151730 = cos(r151726);
        double r151731 = r151729 * r151730;
        double r151732 = r151728 + r151731;
        return r151732;
}

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