\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\left(\tan x + \sqrt{1}\right) \cdot \frac{\frac{1 - \tan x \cdot \tan x}{\sqrt{1} + \tan x}}{1 + \tan x \cdot \tan x}double f(double x) {
double r11977 = 1.0;
double r11978 = x;
double r11979 = tan(r11978);
double r11980 = r11979 * r11979;
double r11981 = r11977 - r11980;
double r11982 = r11977 + r11980;
double r11983 = r11981 / r11982;
return r11983;
}
double f(double x) {
double r11984 = x;
double r11985 = tan(r11984);
double r11986 = 1.0;
double r11987 = sqrt(r11986);
double r11988 = r11985 + r11987;
double r11989 = r11985 * r11985;
double r11990 = r11986 - r11989;
double r11991 = r11987 + r11985;
double r11992 = r11990 / r11991;
double r11993 = r11986 + r11989;
double r11994 = r11992 / r11993;
double r11995 = r11988 * r11994;
return r11995;
}



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