1 + \tan x \cdot \tan x
1 + \tan x \cdot \tan x
double code(double x) {
return ((double) (1.0 + ((double) (((double) tan(x)) * ((double) tan(x))))));
}
double code(double x) {
return ((double) (1.0 + ((double) (((double) tan(x)) * ((double) tan(x))))));
}



Bits error versus x
Results
Initial program 0.1
Final simplification0.1
herbie shell --seed 2020153
(FPCore (x)
:name "(+ 1 (* (tan x) (tan x)))"
:precision binary64
(+ 1.0 (* (tan x) (tan x))))