Average Error: 31.7 → 31.7
Time: 13.8s
Precision: 64
\[\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 f(double x) {
        double r28902 = x;
        double r28903 = sin(r28902);
        double r28904 = r28902 - r28903;
        double r28905 = tan(r28902);
        double r28906 = r28902 - r28905;
        double r28907 = r28904 / r28906;
        return r28907;
}

double f(double x) {
        double r28908 = x;
        double r28909 = sin(r28908);
        double r28910 = r28908 - r28909;
        double r28911 = tan(r28908);
        double r28912 = r28908 - r28911;
        double r28913 = r28910 / r28912;
        return r28913;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 31.7

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

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

Reproduce

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