\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{\log \left(e^{\sqrt{1} + \tan x}\right) \cdot \left(\sqrt{1} - \tan x\right)}{1 + \tan x \cdot \tan x}double f(double x) {
double r21350 = 1.0;
double r21351 = x;
double r21352 = tan(r21351);
double r21353 = r21352 * r21352;
double r21354 = r21350 - r21353;
double r21355 = r21350 + r21353;
double r21356 = r21354 / r21355;
return r21356;
}
double f(double x) {
double r21357 = 1.0;
double r21358 = sqrt(r21357);
double r21359 = x;
double r21360 = tan(r21359);
double r21361 = r21358 + r21360;
double r21362 = exp(r21361);
double r21363 = log(r21362);
double r21364 = r21358 - r21360;
double r21365 = r21363 * r21364;
double r21366 = r21360 * r21360;
double r21367 = r21357 + r21366;
double r21368 = r21365 / r21367;
return r21368;
}



Bits error versus x
Results
Initial program 0.3
rmApplied add-sqr-sqrt0.3
Applied difference-of-squares0.3
rmApplied add-log-exp0.4
Applied add-log-exp0.4
Applied sum-log0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2020059 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
:precision binary64
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))