Average Error: 0.1 → 0.1
Time: 4.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 r142521 = x;
        double r142522 = y;
        double r142523 = cos(r142522);
        double r142524 = r142521 + r142523;
        double r142525 = z;
        double r142526 = sin(r142522);
        double r142527 = r142525 * r142526;
        double r142528 = r142524 - r142527;
        return r142528;
}

double f(double x, double y, double z) {
        double r142529 = x;
        double r142530 = y;
        double r142531 = cos(r142530);
        double r142532 = r142529 + r142531;
        double r142533 = z;
        double r142534 = sin(r142530);
        double r142535 = r142533 * r142534;
        double r142536 = r142532 - r142535;
        return r142536;
}

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

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

Reproduce

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