\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\frac{1 - \frac{\tan x \cdot \sin x}{\cos x}}{1 + \sqrt[3]{\left(\tan x \cdot \left(\tan x \cdot \tan x\right)\right) \cdot \left(\tan x \cdot \left(\tan x \cdot \tan x\right)\right)}}double f(double x) {
double r561735 = 1.0;
double r561736 = x;
double r561737 = tan(r561736);
double r561738 = r561737 * r561737;
double r561739 = r561735 - r561738;
double r561740 = r561735 + r561738;
double r561741 = r561739 / r561740;
return r561741;
}
double f(double x) {
double r561742 = 1.0;
double r561743 = x;
double r561744 = tan(r561743);
double r561745 = sin(r561743);
double r561746 = r561744 * r561745;
double r561747 = cos(r561743);
double r561748 = r561746 / r561747;
double r561749 = r561742 - r561748;
double r561750 = r561744 * r561744;
double r561751 = r561744 * r561750;
double r561752 = r561751 * r561751;
double r561753 = cbrt(r561752);
double r561754 = r561742 + r561753;
double r561755 = r561749 / r561754;
return r561755;
}



Bits error versus x
Results
Initial program 0.3
rmApplied tan-quot0.4
Applied associate-*r/0.4
rmApplied add-cbrt-cube0.4
Applied add-cbrt-cube0.5
Applied cbrt-unprod0.4
Final simplification0.4
herbie shell --seed 2019149
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))