Average Error: 26.9 → 26.9
Time: 1.6s
Precision: binary64
\[\tan 1 + \tan \left(x + 1\right)\]
\[\tan 1 + \tan \left(x + 1\right)\]
\tan 1 + \tan \left(x + 1\right)
\tan 1 + \tan \left(x + 1\right)
double code(double x) {
	return ((double) (((double) tan(1.0)) + ((double) tan(((double) (x + 1.0))))));
}
double code(double x) {
	return ((double) (((double) tan(1.0)) + ((double) tan(((double) (x + 1.0))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 26.9

    \[\tan 1 + \tan \left(x + 1\right)\]
  2. Final simplification26.9

    \[\leadsto \tan 1 + \tan \left(x + 1\right)\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (tan 1) (tan (+ x 1)))"
  :precision binary64
  (+ (tan 1.0) (tan (+ x 1.0))))