\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{1}{1 + \sqrt[3]{{\left(\tan x\right)}^{6}}} - \frac{\tan x \cdot \tan x}{1 + \sqrt[3]{{\left(\tan x\right)}^{6}}}double code(double x) {
return ((1.0 - (tan(x) * tan(x))) / (1.0 + (tan(x) * tan(x))));
}
double code(double x) {
return ((1.0 / (1.0 + cbrt(pow(tan(x), 6.0)))) - ((tan(x) * tan(x)) / (1.0 + cbrt(pow(tan(x), 6.0)))));
}



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