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

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 x - \tan \left(x + 1\right)\]
  2. Final simplification29.1

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

Reproduce

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