\left(x + \cos y\right) - z \cdot \sin y
\mathsf{fma}\left(\sin y, -z, x + \cos y\right)
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
(FPCore (x y z) :precision binary64 (fma (sin y) (- z) (+ x (cos y))))
double code(double x, double y, double z) {
return (x + cos(y)) - (z * sin(y));
}
double code(double x, double y, double z) {
return fma(sin(y), -z, (x + cos(y)));
}



Bits error versus x



Bits error versus y



Bits error versus z
Initial program 0.1
Applied egg-rr0.4
Taylor expanded in z around -inf 48.5
Simplified0.1
Applied egg-rr0.1
Final simplification0.1
herbie shell --seed 2022130
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
:precision binary64
(- (+ x (cos y)) (* z (sin y))))