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 r145523 = x;
        double r145524 = y;
        double r145525 = cos(r145524);
        double r145526 = r145523 + r145525;
        double r145527 = z;
        double r145528 = sin(r145524);
        double r145529 = r145527 * r145528;
        double r145530 = r145526 - r145529;
        return r145530;
}

double f(double x, double y, double z) {
        double r145531 = x;
        double r145532 = y;
        double r145533 = cos(r145532);
        double r145534 = r145531 + r145533;
        double r145535 = z;
        double r145536 = sin(r145532);
        double r145537 = r145535 * r145536;
        double r145538 = r145534 - r145537;
        return r145538;
}

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