Average Error: 0.0 → 0.0
Time: 9.9s
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 r200534 = x;
        double r200535 = y;
        double r200536 = cos(r200535);
        double r200537 = r200534 + r200536;
        double r200538 = z;
        double r200539 = sin(r200535);
        double r200540 = r200538 * r200539;
        double r200541 = r200537 - r200540;
        return r200541;
}

double f(double x, double y, double z) {
        double r200542 = x;
        double r200543 = y;
        double r200544 = cos(r200543);
        double r200545 = r200542 + r200544;
        double r200546 = z;
        double r200547 = sin(r200543);
        double r200548 = r200546 * r200547;
        double r200549 = r200545 - r200548;
        return r200549;
}

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