\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y
double f(double x, double y, double z) {
double r182762 = x;
double r182763 = y;
double r182764 = sin(r182763);
double r182765 = r182762 + r182764;
double r182766 = z;
double r182767 = cos(r182763);
double r182768 = r182766 * r182767;
double r182769 = r182765 + r182768;
return r182769;
}
double f(double x, double y, double z) {
double r182770 = x;
double r182771 = y;
double r182772 = sin(r182771);
double r182773 = r182770 + r182772;
double r182774 = z;
double r182775 = cos(r182771);
double r182776 = r182774 * r182775;
double r182777 = r182773 + r182776;
return r182777;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 0.1
rmApplied add-cube-cbrt0.3
Applied associate-*r*0.3
rmApplied pow1/316.0
Applied pow1/316.0
Applied pow-prod-down0.1
Simplified0.1
Taylor expanded around inf 0.1
Final simplification0.1
herbie shell --seed 2019347
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
:precision binary64
(+ (+ x (sin y)) (* z (cos y))))