Average Error: 0.1 → 0.1
Time: 4.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 r176798 = x;
        double r176799 = y;
        double r176800 = cos(r176799);
        double r176801 = r176798 + r176800;
        double r176802 = z;
        double r176803 = sin(r176799);
        double r176804 = r176802 * r176803;
        double r176805 = r176801 - r176804;
        return r176805;
}

double f(double x, double y, double z) {
        double r176806 = x;
        double r176807 = y;
        double r176808 = cos(r176807);
        double r176809 = r176806 + r176808;
        double r176810 = z;
        double r176811 = sin(r176807);
        double r176812 = r176810 * r176811;
        double r176813 = r176809 - r176812;
        return r176813;
}

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