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

Error

Bits error versus x

Bits error versus z

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.4

    \[\tan \left(\tan^{-1} x + z\right)\]
  2. Final simplification29.4

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

Reproduce

herbie shell --seed 2020153 
(FPCore (x z)
  :name "(tan (+ (atan x) z))"
  :precision binary64
  (tan (+ (atan x) z)))