Average Error: 10.5 → 10.5
Time: 2.3s
Precision: binary64
\[\tan x - \sin x\]
\[\tan x - \sin x\]
\tan x - \sin x
\tan x - \sin x
double code(double x) {
	return ((double) (((double) tan(x)) - ((double) sin(x))));
}
double code(double x) {
	return ((double) (((double) tan(x)) - ((double) sin(x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 10.5

    \[\tan x - \sin x\]
  2. Final simplification10.5

    \[\leadsto \tan x - \sin x\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- (tan x) (sin x))"
  :precision binary64
  (- (tan x) (sin x)))