\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\left(\sqrt{1} + \tan x\right) \cdot \frac{\sqrt{1} - \tan x}{1 + \tan x \cdot \tan x}double f(double x) {
double r12216 = 1.0;
double r12217 = x;
double r12218 = tan(r12217);
double r12219 = r12218 * r12218;
double r12220 = r12216 - r12219;
double r12221 = r12216 + r12219;
double r12222 = r12220 / r12221;
return r12222;
}
double f(double x) {
double r12223 = 1.0;
double r12224 = sqrt(r12223);
double r12225 = x;
double r12226 = tan(r12225);
double r12227 = r12224 + r12226;
double r12228 = r12224 - r12226;
double r12229 = r12226 * r12226;
double r12230 = r12223 + r12229;
double r12231 = r12228 / r12230;
double r12232 = r12227 * r12231;
return r12232;
}



Bits error versus x
Results
Initial program 0.3
rmApplied *-un-lft-identity0.3
Applied add-sqr-sqrt0.3
Applied difference-of-squares0.3
Applied times-frac0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020059
(FPCore (x)
:name "Trigonometry B"
:precision binary64
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))