Average Error: 0.0 → 0.0
Time: 16.6s
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 r154117 = x;
        double r154118 = y;
        double r154119 = cos(r154118);
        double r154120 = r154117 + r154119;
        double r154121 = z;
        double r154122 = sin(r154118);
        double r154123 = r154121 * r154122;
        double r154124 = r154120 - r154123;
        return r154124;
}

double f(double x, double y, double z) {
        double r154125 = x;
        double r154126 = y;
        double r154127 = cos(r154126);
        double r154128 = r154125 + r154127;
        double r154129 = z;
        double r154130 = sin(r154126);
        double r154131 = r154129 * r154130;
        double r154132 = r154128 - r154131;
        return r154132;
}

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

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

Reproduce

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