\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}double code(double x, double y) {
return ((double) (((double) (((double) tan(x)) * ((double) tan(x)))) / ((double) (y + ((double) (((double) tan(x)) * ((double) tan(x))))))));
}
double code(double x, double y) {
return ((double) (((double) (((double) tan(x)) * ((double) tan(x)))) / ((double) (y + ((double) (((double) tan(x)) * ((double) tan(x))))))));
}



Bits error versus x



Bits error versus y
Results
Initial program 3.9
Final simplification3.9
herbie shell --seed 2020153
(FPCore (x y)
:name "(/ (* (tan x) (tan x)) (+ y (* (tan x) (tan x))))"
:precision binary64
(/ (* (tan x) (tan x)) (+ y (* (tan x) (tan x)))))