x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)x1 + \left(3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - x2 \cdot 2\right) - x1}{1 + x1 \cdot x1} + \left(x1 + \left(x1 \cdot \left(x1 \cdot x1\right) + \left(\left(1 + x1 \cdot x1\right) \cdot \left(\left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1} - 3\right) \cdot \left(\left(x1 \cdot 2\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1}\right) + \sqrt[3]{\left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1} - 6\right)} \cdot \left(\sqrt[3]{\left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1} - 6\right)} \cdot \left(\sqrt[3]{x1 \cdot x1} \cdot \sqrt[3]{4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1} - 6}\right)\right)\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + x2 \cdot 2\right) - x1}{1 + x1 \cdot x1}\right)\right)\right)\right)double f(double x1, double x2) {
double r2759048 = x1;
double r2759049 = 2.0;
double r2759050 = r2759049 * r2759048;
double r2759051 = 3.0;
double r2759052 = r2759051 * r2759048;
double r2759053 = r2759052 * r2759048;
double r2759054 = x2;
double r2759055 = r2759049 * r2759054;
double r2759056 = r2759053 + r2759055;
double r2759057 = r2759056 - r2759048;
double r2759058 = r2759048 * r2759048;
double r2759059 = 1.0;
double r2759060 = r2759058 + r2759059;
double r2759061 = r2759057 / r2759060;
double r2759062 = r2759050 * r2759061;
double r2759063 = r2759061 - r2759051;
double r2759064 = r2759062 * r2759063;
double r2759065 = 4.0;
double r2759066 = r2759065 * r2759061;
double r2759067 = 6.0;
double r2759068 = r2759066 - r2759067;
double r2759069 = r2759058 * r2759068;
double r2759070 = r2759064 + r2759069;
double r2759071 = r2759070 * r2759060;
double r2759072 = r2759053 * r2759061;
double r2759073 = r2759071 + r2759072;
double r2759074 = r2759058 * r2759048;
double r2759075 = r2759073 + r2759074;
double r2759076 = r2759075 + r2759048;
double r2759077 = r2759053 - r2759055;
double r2759078 = r2759077 - r2759048;
double r2759079 = r2759078 / r2759060;
double r2759080 = r2759051 * r2759079;
double r2759081 = r2759076 + r2759080;
double r2759082 = r2759048 + r2759081;
return r2759082;
}
double f(double x1, double x2) {
double r2759083 = x1;
double r2759084 = 3.0;
double r2759085 = r2759084 * r2759083;
double r2759086 = r2759085 * r2759083;
double r2759087 = x2;
double r2759088 = 2.0;
double r2759089 = r2759087 * r2759088;
double r2759090 = r2759086 - r2759089;
double r2759091 = r2759090 - r2759083;
double r2759092 = 1.0;
double r2759093 = r2759083 * r2759083;
double r2759094 = r2759092 + r2759093;
double r2759095 = r2759091 / r2759094;
double r2759096 = r2759084 * r2759095;
double r2759097 = r2759083 * r2759093;
double r2759098 = r2759086 + r2759089;
double r2759099 = r2759098 - r2759083;
double r2759100 = r2759099 / r2759094;
double r2759101 = r2759100 - r2759084;
double r2759102 = r2759083 * r2759088;
double r2759103 = r2759102 * r2759100;
double r2759104 = r2759101 * r2759103;
double r2759105 = 4.0;
double r2759106 = r2759105 * r2759100;
double r2759107 = 6.0;
double r2759108 = r2759106 - r2759107;
double r2759109 = r2759093 * r2759108;
double r2759110 = cbrt(r2759109);
double r2759111 = cbrt(r2759093);
double r2759112 = cbrt(r2759108);
double r2759113 = r2759111 * r2759112;
double r2759114 = r2759110 * r2759113;
double r2759115 = r2759110 * r2759114;
double r2759116 = r2759104 + r2759115;
double r2759117 = r2759094 * r2759116;
double r2759118 = r2759086 * r2759100;
double r2759119 = r2759117 + r2759118;
double r2759120 = r2759097 + r2759119;
double r2759121 = r2759083 + r2759120;
double r2759122 = r2759096 + r2759121;
double r2759123 = r2759083 + r2759122;
return r2759123;
}



Bits error versus x1



Bits error versus x2
Results
Initial program 0.5
rmApplied add-cube-cbrt0.6
rmApplied cbrt-prod0.6
Final simplification0.6
herbie shell --seed 2019163
(FPCore (x1 x2)
:name "Rosa's FloatVsDoubleBenchmark"
(+ x1 (+ (+ (+ (+ (* (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (- (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) 6))) (+ (* x1 x1) 1)) (* (* (* 3 x1) x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))) (* (* x1 x1) x1)) x1) (* 3 (/ (- (- (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))))