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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 27.9

    \[\tan \left(1 + x\right) - \cos x\]
  2. Final simplification27.9

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

Reproduce

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