Average Error: 0.1 → 0.1
Time: 7.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 r839 = x;
        double r840 = y;
        double r841 = cos(r840);
        double r842 = r839 + r841;
        double r843 = z;
        double r844 = sin(r840);
        double r845 = r843 * r844;
        double r846 = r842 - r845;
        return r846;
}

double f(double x, double y, double z) {
        double r847 = x;
        double r848 = y;
        double r849 = cos(r848);
        double r850 = r847 + r849;
        double r851 = z;
        double r852 = sin(r848);
        double r853 = r851 * r852;
        double r854 = r850 - r853;
        return r854;
}

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