Average Error: 10.3 → 10.3
Time: 2.2s
Precision: binary64
\[\sin x - \tan x\]
\[\sin x - \tan x\]
\sin x - \tan x
\sin x - \tan x
double code(double x) {
	return ((double) (((double) sin(x)) - ((double) tan(x))));
}
double code(double x) {
	return ((double) (((double) sin(x)) - ((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 10.3

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

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

Reproduce

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