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)))