Average Error: 0.0 → 0.0
Time: 4.9s
Precision: 64
\[\sin \left(\cos x\right) + x\]
\[\sin \left(\cos x\right) + x\]
\sin \left(\cos x\right) + x
\sin \left(\cos x\right) + x
double f(double x) {
        double r1370580 = x;
        double r1370581 = cos(r1370580);
        double r1370582 = sin(r1370581);
        double r1370583 = r1370582 + r1370580;
        return r1370583;
}

double f(double x) {
        double r1370584 = x;
        double r1370585 = cos(r1370584);
        double r1370586 = sin(r1370585);
        double r1370587 = r1370586 + r1370584;
        return r1370587;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\sin \left(\cos x\right) + x\]
  2. Final simplification0.0

    \[\leadsto \sin \left(\cos x\right) + x\]

Reproduce

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