Average Error: 14.6 → 14.6
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 14.6

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

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

Reproduce

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