\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}double f(double x) {
double r10409 = 1.0;
double r10410 = x;
double r10411 = tan(r10410);
double r10412 = r10411 * r10411;
double r10413 = r10409 - r10412;
double r10414 = r10409 + r10412;
double r10415 = r10413 / r10414;
return r10415;
}
double f(double x) {
double r10416 = 1.0;
double r10417 = x;
double r10418 = tan(r10417);
double r10419 = r10418 * r10418;
double r10420 = r10416 - r10419;
double r10421 = r10416 + r10419;
double r10422 = r10420 / r10421;
return r10422;
}



Bits error versus x
Results
Initial program 0.3
rmApplied clear-num0.4
rmApplied *-un-lft-identity0.4
Applied *-un-lft-identity0.4
Applied times-frac0.4
Applied add-cube-cbrt0.4
Applied times-frac0.4
Simplified0.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2020020
(FPCore (x)
:name "Trigonometry B"
:precision binary64
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))