\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{\sqrt[3]{{\left(1 - \tan x \cdot \tan x\right)}^{3}}}{1 + \tan x \cdot \tan x}double f(double x) {
double r20016 = 1.0;
double r20017 = x;
double r20018 = tan(r20017);
double r20019 = r20018 * r20018;
double r20020 = r20016 - r20019;
double r20021 = r20016 + r20019;
double r20022 = r20020 / r20021;
return r20022;
}
double f(double x) {
double r20023 = 1.0;
double r20024 = x;
double r20025 = tan(r20024);
double r20026 = r20025 * r20025;
double r20027 = r20023 - r20026;
double r20028 = 3.0;
double r20029 = pow(r20027, r20028);
double r20030 = cbrt(r20029);
double r20031 = r20023 + r20026;
double r20032 = r20030 / r20031;
return r20032;
}



Bits error versus x
Results
Initial program 0.3
rmApplied add-cbrt-cube0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019235
(FPCore (x)
:name "Trigonometry B"
:precision binary64
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))