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 r2759045 = x1;
double r2759046 = 2.0;
double r2759047 = r2759046 * r2759045;
double r2759048 = 3.0;
double r2759049 = r2759048 * r2759045;
double r2759050 = r2759049 * r2759045;
double r2759051 = x2;
double r2759052 = r2759046 * r2759051;
double r2759053 = r2759050 + r2759052;
double r2759054 = r2759053 - r2759045;
double r2759055 = r2759045 * r2759045;
double r2759056 = 1.0;
double r2759057 = r2759055 + r2759056;
double r2759058 = r2759054 / r2759057;
double r2759059 = r2759047 * r2759058;
double r2759060 = r2759058 - r2759048;
double r2759061 = r2759059 * r2759060;
double r2759062 = 4.0;
double r2759063 = r2759062 * r2759058;
double r2759064 = 6.0;
double r2759065 = r2759063 - r2759064;
double r2759066 = r2759055 * r2759065;
double r2759067 = r2759061 + r2759066;
double r2759068 = r2759067 * r2759057;
double r2759069 = r2759050 * r2759058;
double r2759070 = r2759068 + r2759069;
double r2759071 = r2759055 * r2759045;
double r2759072 = r2759070 + r2759071;
double r2759073 = r2759072 + r2759045;
double r2759074 = r2759050 - r2759052;
double r2759075 = r2759074 - r2759045;
double r2759076 = r2759075 / r2759057;
double r2759077 = r2759048 * r2759076;
double r2759078 = r2759073 + r2759077;
double r2759079 = r2759045 + r2759078;
return r2759079;
}
double f(double x1, double x2) {
double r2759080 = x1;
double r2759081 = 3.0;
double r2759082 = r2759081 * r2759080;
double r2759083 = r2759082 * r2759080;
double r2759084 = x2;
double r2759085 = 2.0;
double r2759086 = r2759084 * r2759085;
double r2759087 = r2759083 - r2759086;
double r2759088 = r2759087 - r2759080;
double r2759089 = 1.0;
double r2759090 = r2759080 * r2759080;
double r2759091 = r2759089 + r2759090;
double r2759092 = r2759088 / r2759091;
double r2759093 = r2759081 * r2759092;
double r2759094 = r2759080 * r2759090;
double r2759095 = r2759083 + r2759086;
double r2759096 = r2759095 - r2759080;
double r2759097 = r2759096 / r2759091;
double r2759098 = r2759097 - r2759081;
double r2759099 = r2759080 * r2759085;
double r2759100 = r2759099 * r2759097;
double r2759101 = r2759098 * r2759100;
double r2759102 = 4.0;
double r2759103 = r2759102 * r2759097;
double r2759104 = 6.0;
double r2759105 = r2759103 - r2759104;
double r2759106 = r2759090 * r2759105;
double r2759107 = cbrt(r2759106);
double r2759108 = cbrt(r2759090);
double r2759109 = cbrt(r2759105);
double r2759110 = r2759108 * r2759109;
double r2759111 = r2759107 * r2759110;
double r2759112 = r2759107 * r2759111;
double r2759113 = r2759101 + r2759112;
double r2759114 = r2759091 * r2759113;
double r2759115 = r2759083 * r2759097;
double r2759116 = r2759114 + r2759115;
double r2759117 = r2759094 + r2759116;
double r2759118 = r2759080 + r2759117;
double r2759119 = r2759093 + r2759118;
double r2759120 = r2759080 + r2759119;
return r2759120;
}



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))))))