Average Error: 14.6 → 14.6
Time: 1.1s
Precision: binary64
\[\tan^{-1} \left(x + 1\right) - \tan^{-1} x\]
\[\tan^{-1} \left(x + 1\right) - \tan^{-1} x\]
\tan^{-1} \left(x + 1\right) - \tan^{-1} x
\tan^{-1} \left(x + 1\right) - \tan^{-1} x
double code(double x) {
	return ((double) (((double) atan(((double) (x + 1.0)))) - ((double) atan(x))));
}
double code(double x) {
	return ((double) (((double) atan(((double) (x + 1.0)))) - ((double) atan(x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 14.6

    \[\tan^{-1} \left(x + 1\right) - \tan^{-1} x\]
  2. Final simplification14.6

    \[\leadsto \tan^{-1} \left(x + 1\right) - \tan^{-1} x\]

Reproduce

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