\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{{\left(1 - \sqrt[3]{{\left(\tan x\right)}^{6}}\right)}^{1}}{1 + \sqrt[3]{{\left(\tan x\right)}^{6}}}double f(double x) {
double r10216 = 1.0;
double r10217 = x;
double r10218 = tan(r10217);
double r10219 = r10218 * r10218;
double r10220 = r10216 - r10219;
double r10221 = r10216 + r10219;
double r10222 = r10220 / r10221;
return r10222;
}
double f(double x) {
double r10223 = 1.0;
double r10224 = x;
double r10225 = tan(r10224);
double r10226 = 6.0;
double r10227 = pow(r10225, r10226);
double r10228 = cbrt(r10227);
double r10229 = r10223 - r10228;
double r10230 = 1.0;
double r10231 = pow(r10229, r10230);
double r10232 = r10223 + r10228;
double r10233 = r10231 / r10232;
return r10233;
}



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