Average Error: 0 → 0
Time: 6.3s
Precision: 64
\[\sin x - \cos y\]
\[\sin x - \cos y\]
\sin x - \cos y
\sin x - \cos y
double f(double x, double y) {
        double r279265 = x;
        double r279266 = sin(r279265);
        double r279267 = y;
        double r279268 = cos(r279267);
        double r279269 = r279266 - r279268;
        return r279269;
}

double f(double x, double y) {
        double r279270 = x;
        double r279271 = sin(r279270);
        double r279272 = y;
        double r279273 = cos(r279272);
        double r279274 = r279271 - r279273;
        return r279274;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\sin x - \cos y\]
  2. Final simplification0

    \[\leadsto \sin x - \cos y\]

Reproduce

herbie shell --seed 1 
(FPCore (x y)
  :name "sin(x) - cos(y)"
  :precision binary32
  (- (sin x) (cos y)))