Average Error: 0.0 → 0.0
Time: 8.8s
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 r201182 = x;
        double r201183 = y;
        double r201184 = cos(r201183);
        double r201185 = r201182 + r201184;
        double r201186 = z;
        double r201187 = sin(r201183);
        double r201188 = r201186 * r201187;
        double r201189 = r201185 - r201188;
        return r201189;
}

double f(double x, double y, double z) {
        double r201190 = x;
        double r201191 = y;
        double r201192 = cos(r201191);
        double r201193 = r201190 + r201192;
        double r201194 = z;
        double r201195 = sin(r201191);
        double r201196 = r201194 * r201195;
        double r201197 = r201193 - r201196;
        return r201197;
}

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