Average Error: 15.2 → 15.2
Time: 3.0s
Precision: binary64
\[\frac{\sin x - \tan x}{x}\]
\[\frac{\sin x - \tan x}{x}\]
\frac{\sin x - \tan x}{x}
\frac{\sin x - \tan x}{x}
double code(double x) {
	return ((double) (((double) (((double) sin(x)) - ((double) tan(x)))) / x));
}
double code(double x) {
	return ((double) (((double) (((double) sin(x)) - ((double) tan(x)))) / x));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 15.2

    \[\frac{\sin x - \tan x}{x}\]
  2. Final simplification15.2

    \[\leadsto \frac{\sin x - \tan x}{x}\]

Reproduce

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