\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\left(\tan x + 1\right) \cdot \frac{1 - \tan x}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}double f(double x) {
double r2705140 = 1.0;
double r2705141 = x;
double r2705142 = tan(r2705141);
double r2705143 = r2705142 * r2705142;
double r2705144 = r2705140 - r2705143;
double r2705145 = r2705140 + r2705143;
double r2705146 = r2705144 / r2705145;
return r2705146;
}
double f(double x) {
double r2705147 = x;
double r2705148 = tan(r2705147);
double r2705149 = 1.0;
double r2705150 = r2705148 + r2705149;
double r2705151 = r2705149 - r2705148;
double r2705152 = fma(r2705148, r2705148, r2705149);
double r2705153 = r2705151 / r2705152;
double r2705154 = r2705150 * r2705153;
return r2705154;
}



Bits error versus x
Initial program 0.3
rmApplied *-un-lft-identity0.3
Applied add-sqr-sqrt0.3
Applied difference-of-squares0.4
Applied times-frac0.4
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019107 +o rules:numerics
(FPCore (x)
:name "Trigonometry B"
(/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))