\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\left((\left(\tan x \cdot \tan x\right) \cdot \left(\tan x \cdot \tan x\right) + 1)_* - \tan x \cdot \tan x\right) \cdot \left(\left(1 - \tan x \cdot \tan x\right) \cdot \frac{1}{{\left(\tan x \cdot \tan x\right)}^{3} + 1}\right)double f(double x) {
double r1529374 = 1.0;
double r1529375 = x;
double r1529376 = tan(r1529375);
double r1529377 = r1529376 * r1529376;
double r1529378 = r1529374 - r1529377;
double r1529379 = r1529374 + r1529377;
double r1529380 = r1529378 / r1529379;
return r1529380;
}
double f(double x) {
double r1529381 = x;
double r1529382 = tan(r1529381);
double r1529383 = r1529382 * r1529382;
double r1529384 = 1.0;
double r1529385 = fma(r1529383, r1529383, r1529384);
double r1529386 = r1529385 - r1529383;
double r1529387 = r1529384 - r1529383;
double r1529388 = 3.0;
double r1529389 = pow(r1529383, r1529388);
double r1529390 = r1529389 + r1529384;
double r1529391 = r1529384 / r1529390;
double r1529392 = r1529387 * r1529391;
double r1529393 = r1529386 * r1529392;
return r1529393;
}



Bits error versus x
Initial program 0.3
rmApplied div-inv0.4
rmApplied flip3-+0.4
Applied associate-/r/0.4
Applied associate-*r*0.4
Simplified0.5
Final simplification0.5
herbie shell --seed 2019119 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))