Average Error: 0.2 → 0.2
Time: 9.1s
Precision: 64
\[\sin x + \cos x\]
\[\sin x + \cos x\]
\sin x + \cos x
\sin x + \cos x
double f(double x) {
        double r1405768 = x;
        double r1405769 = sin(r1405768);
        double r1405770 = cos(r1405768);
        double r1405771 = r1405769 + r1405770;
        return r1405771;
}

double f(double x) {
        double r1405772 = x;
        double r1405773 = sin(r1405772);
        double r1405774 = cos(r1405772);
        double r1405775 = r1405773 + r1405774;
        return r1405775;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\sin x + \cos x\]
  2. Final simplification0.2

    \[\leadsto \sin x + \cos x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "sin(x)+cos(x)"
  :precision binary64
  (+ (sin x) (cos x)))