Average Error: 30.8 → 30.8
Time: 7.0s
Precision: binary64
Cost: 13248
\[\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}
(FPCore (x) :precision binary64 (/ (- x (sin x)) (- x (tan x))))
(FPCore (x) :precision binary64 (/ (- x (sin x)) (- x (tan x))))
double code(double x) {
	return (x - sin(x)) / (x - tan(x));
}
double code(double x) {
	return (x - sin(x)) / (x - 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 30.8

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

Reproduce

herbie shell --seed 2021042 
(FPCore (x)
  :name "sintan (problem 3.4.5)"
  :precision binary64
  (/ (- x (sin x)) (- x (tan x))))