Average Error: 0.1 → 0.1
Time: 1.5s
Precision: binary64
\[\tan^{-1} \left(\tan x\right)\]
\[\tan^{-1} \left(\tan x\right)\]
\tan^{-1} \left(\tan x\right)
\tan^{-1} \left(\tan x\right)
double code(double x) {
	return ((double) atan(((double) tan(x))));
}
double code(double x) {
	return ((double) atan(((double) tan(x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\tan^{-1} \left(\tan x\right)\]
  2. Final simplification0.1

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

Reproduce

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