Average Error: 0.1 → 0.1
Time: 2.2s
Precision: binary64
\[\tan x - \tan y\]
\[\tan x - \tan y\]
\tan x - \tan y
\tan x - \tan y
double code(double x, double y) {
	return ((double) (((double) tan(x)) - ((double) tan(y))));
}
double code(double x, double y) {
	return ((double) (((double) tan(x)) - ((double) tan(y))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\tan x - \tan y\]
  2. Final simplification0.1

    \[\leadsto \tan x - \tan y\]

Reproduce

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