Average Error: 0 → 0
Time: 4.1s
Precision: 64
\[\cos x + \cos x\]
\[\cos x + \cos x\]
\cos x + \cos x
\cos x + \cos x
double f(double x) {
        double r58843675 = x;
        double r58843676 = cos(r58843675);
        double r58843677 = r58843676 + r58843676;
        return r58843677;
}

double f(double x) {
        double r58843678 = x;
        double r58843679 = cos(r58843678);
        double r58843680 = r58843679 + r58843679;
        return r58843680;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

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

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

Reproduce

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