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

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

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

Reproduce

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