Average Error: 0.0 → 0.0
Time: 5.0s
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 r188643 = x;
        double r188644 = y;
        double r188645 = cos(r188644);
        double r188646 = r188643 + r188645;
        double r188647 = z;
        double r188648 = sin(r188644);
        double r188649 = r188647 * r188648;
        double r188650 = r188646 - r188649;
        return r188650;
}

double f(double x, double y, double z) {
        double r188651 = x;
        double r188652 = y;
        double r188653 = cos(r188652);
        double r188654 = r188651 + r188653;
        double r188655 = z;
        double r188656 = sin(r188652);
        double r188657 = r188655 * r188656;
        double r188658 = r188654 - r188657;
        return r188658;
}

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