1 + tan \cdot \left(\left(t \cdot tan\right) \cdot t\right)
1 + tan \cdot \left(\left(t \cdot tan\right) \cdot t\right)
double code(double tan, double t) {
return ((double) (1.0 + ((double) (tan * ((double) (((double) (t * tan)) * t))))));
}
double code(double tan, double t) {
return ((double) (1.0 + ((double) (tan * ((double) (((double) (t * tan)) * t))))));
}



Bits error versus tan



Bits error versus t
Results
Initial program 3.0
Final simplification3.0
herbie shell --seed 2020153
(FPCore (tan t)
:name "(+ 1 (* tan (* (* t tan) t)))"
:precision binary64
(+ 1.0 (* tan (* (* t tan) t))))