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)\left(\left(x1 + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 + \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(\left(x1 \cdot x1\right) \cdot \left(\sqrt[3]{4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6} \cdot \sqrt[3]{4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6}\right)\right) \cdot \sqrt[3]{4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6}\right) \cdot \left(x1 \cdot x1 + 1\right)\right)\right) + \left(x1 \cdot x1\right) \cdot \left(x1 + \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} \cdot 3\right)double f(double x1, double x2) {
double r61948 = x1;
double r61949 = 2.0;
double r61950 = r61949 * r61948;
double r61951 = 3.0;
double r61952 = r61951 * r61948;
double r61953 = r61952 * r61948;
double r61954 = x2;
double r61955 = r61949 * r61954;
double r61956 = r61953 + r61955;
double r61957 = r61956 - r61948;
double r61958 = r61948 * r61948;
double r61959 = 1.0;
double r61960 = r61958 + r61959;
double r61961 = r61957 / r61960;
double r61962 = r61950 * r61961;
double r61963 = r61961 - r61951;
double r61964 = r61962 * r61963;
double r61965 = 4.0;
double r61966 = r61965 * r61961;
double r61967 = 6.0;
double r61968 = r61966 - r61967;
double r61969 = r61958 * r61968;
double r61970 = r61964 + r61969;
double r61971 = r61970 * r61960;
double r61972 = r61953 * r61961;
double r61973 = r61971 + r61972;
double r61974 = r61958 * r61948;
double r61975 = r61973 + r61974;
double r61976 = r61975 + r61948;
double r61977 = r61953 - r61955;
double r61978 = r61977 - r61948;
double r61979 = r61978 / r61960;
double r61980 = r61951 * r61979;
double r61981 = r61976 + r61980;
double r61982 = r61948 + r61981;
return r61982;
}
double f(double x1, double x2) {
double r61983 = x1;
double r61984 = 3.0;
double r61985 = r61984 * r61983;
double r61986 = r61985 * r61983;
double r61987 = 2.0;
double r61988 = x2;
double r61989 = r61987 * r61988;
double r61990 = r61986 - r61989;
double r61991 = r61990 - r61983;
double r61992 = r61983 * r61983;
double r61993 = 1.0;
double r61994 = r61992 + r61993;
double r61995 = r61991 / r61994;
double r61996 = r61984 * r61995;
double r61997 = r61983 + r61996;
double r61998 = r61987 * r61983;
double r61999 = r61986 + r61989;
double r62000 = r61999 - r61983;
double r62001 = r62000 / r61994;
double r62002 = r61998 * r62001;
double r62003 = r62001 - r61984;
double r62004 = r62002 * r62003;
double r62005 = 4.0;
double r62006 = r62005 * r62001;
double r62007 = 6.0;
double r62008 = r62006 - r62007;
double r62009 = cbrt(r62008);
double r62010 = r62009 * r62009;
double r62011 = r61992 * r62010;
double r62012 = r62011 * r62009;
double r62013 = r62004 + r62012;
double r62014 = r62013 * r61994;
double r62015 = r61983 + r62014;
double r62016 = r61997 + r62015;
double r62017 = r62001 * r61984;
double r62018 = r61983 + r62017;
double r62019 = r61992 * r62018;
double r62020 = r62016 + r62019;
return r62020;
}



Bits error versus x1



Bits error versus x2
Results
Initial program 0.5
Simplified0.5
rmApplied add-cube-cbrt0.6
Applied associate-*r*0.6
Final simplification0.6
herbie shell --seed 2020018
(FPCore (x1 x2)
:name "Rosa's FloatVsDoubleBenchmark"
:precision binary64
(+ 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))))))