{\left(\sin \left(x + y\right)\right)}^{2} - {\left(\sin \left(x - y\right)\right)}^{2}{\left(\sin \left(x + y\right)\right)}^{2} - {\left(\sin \left(x - y\right)\right)}^{2}double code(double x, double y) {
return ((double) (((double) pow(((double) sin(((double) (x + y)))), 2.0)) - ((double) pow(((double) sin(((double) (x - y)))), 2.0))));
}
double code(double x, double y) {
return ((double) (((double) pow(((double) sin(((double) (x + y)))), 2.0)) - ((double) pow(((double) sin(((double) (x - y)))), 2.0))));
}



Bits error versus x



Bits error versus y
Results
Initial program 52.8
Final simplification52.8
herbie shell --seed 2020152
(FPCore (x y)
:name "(- (pow (sin (+ x y)) 2) (pow (sin (- x y)) 2))"
:precision binary64
(- (pow (sin (+ x y)) 2.0) (pow (sin (- x y)) 2.0)))