\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\left(1 + \sqrt{\frac{\tan x \cdot \sin x}{\cos x}}\right) \cdot \frac{1 - \sqrt{\frac{\tan x \cdot \sin x}{\cos x}}}{1 + \tan x \cdot \tan x}double f(double x) {
double r493645 = 1.0;
double r493646 = x;
double r493647 = tan(r493646);
double r493648 = r493647 * r493647;
double r493649 = r493645 - r493648;
double r493650 = r493645 + r493648;
double r493651 = r493649 / r493650;
return r493651;
}
double f(double x) {
double r493652 = 1.0;
double r493653 = x;
double r493654 = tan(r493653);
double r493655 = sin(r493653);
double r493656 = r493654 * r493655;
double r493657 = cos(r493653);
double r493658 = r493656 / r493657;
double r493659 = sqrt(r493658);
double r493660 = r493652 + r493659;
double r493661 = r493652 - r493659;
double r493662 = r493654 * r493654;
double r493663 = r493652 + r493662;
double r493664 = r493661 / r493663;
double r493665 = r493660 * r493664;
return r493665;
}



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