\tan \left(\tan^{-1} x + z \cdot \left(\tan^{-1} y - \tan^{-1} x\right)\right)\tan \left(\tan^{-1} x + z \cdot \left(\tan^{-1} y - \tan^{-1} x\right)\right)double code(double x, double z, double y) {
return ((double) tan(((double) (((double) atan(x)) + ((double) (z * ((double) (((double) atan(y)) - ((double) atan(x))))))))));
}
double code(double x, double z, double y) {
return ((double) tan(((double) (((double) atan(x)) + ((double) (z * ((double) (((double) atan(y)) - ((double) atan(x))))))))));
}



Bits error versus x



Bits error versus z



Bits error versus y
Results
Initial program 40.4
Final simplification40.4
herbie shell --seed 2020153
(FPCore (x z y)
:name "(tan (+ (atan x) (* z (- (atan y) (atan x)))))"
:precision binary64
(tan (+ (atan x) (* z (- (atan y) (atan x))))))