Average Error: 7.3 → 7.3
Time: 736.0ms
Precision: binary64
\[\tan^{-1} y - \tan^{-1} x\]
\[\tan^{-1} y - \tan^{-1} x\]
\tan^{-1} y - \tan^{-1} x
\tan^{-1} y - \tan^{-1} x
double code(double y, double x) {
	return ((double) (((double) atan(y)) - ((double) atan(x))));
}
double code(double y, double x) {
	return ((double) (((double) atan(y)) - ((double) atan(x))));
}

Error

Bits error versus y

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 7.3

    \[\tan^{-1} y - \tan^{-1} x\]
  2. Final simplification7.3

    \[\leadsto \tan^{-1} y - \tan^{-1} x\]

Reproduce

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