\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 r13230 = 1.0;
double r13231 = x;
double r13232 = tan(r13231);
double r13233 = r13232 * r13232;
double r13234 = r13230 - r13233;
double r13235 = r13230 + r13233;
double r13236 = r13234 / r13235;
return r13236;
}
double f(double x) {
double r13237 = 1.0;
double r13238 = x;
double r13239 = tan(r13238);
double r13240 = r13239 * r13239;
double r13241 = r13237 - r13240;
double r13242 = r13237 + r13240;
double r13243 = r13241 / r13242;
return r13243;
}



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