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

Error

Bits error versus n

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 15.0

    \[\tan^{-1} \left(n + 1\right) - \tan^{-1} n\]
  2. Final simplification15.0

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

Reproduce

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