Average Error: 29.1 → 29.1
Time: 1.5s
Precision: binary64
\[\tan \left(x + 1\right) - \tan x\]
\[\tan \left(x + 1\right) - \tan x\]
\tan \left(x + 1\right) - \tan x
\tan \left(x + 1\right) - \tan x
double code(double x) {
	return ((double) (((double) tan(((double) (x + 1.0)))) - ((double) tan(x))));
}
double code(double x) {
	return ((double) (((double) tan(((double) (x + 1.0)))) - ((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 29.1

    \[\tan \left(x + 1\right) - \tan x\]
  2. Final simplification29.1

    \[\leadsto \tan \left(x + 1\right) - \tan x\]

Reproduce

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