\left(\left(\left(\left(\left(\left(\left(\left(\left(\left(a + b\right) + c\right) + a\right) + b\right) + c\right) + d\right) + e\right) + f\right) + g\right) + h\right) + i
\left(i + \left(g + h\right)\right) + \left(\left(f + \left(d + e\right)\right) + 2 \cdot \left(\left(a + b\right) + c\right)\right)
double code(double a, double b, double c, double d, double e, double f, double g, double h, double i) {
return ((double) (((double) (((double) (((double) (((double) (((double) (((double) (((double) (((double) (((double) (((double) (a + b)) + c)) + a)) + b)) + c)) + d)) + e)) + f)) + g)) + h)) + i));
}
double code(double a, double b, double c, double d, double e, double f, double g, double h, double i) {
return ((double) (((double) (i + ((double) (g + h)))) + ((double) (((double) (f + ((double) (d + e)))) + ((double) (2.0 * ((double) (((double) (a + b)) + c))))))));
}



Bits error versus a



Bits error versus b



Bits error versus c



Bits error versus d



Bits error versus e



Bits error versus f



Bits error versus g



Bits error versus h



Bits error versus i
Results
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020153
(FPCore (a b c d e f g h i)
:name "(+ (+ (+ (+ (+ (+ (+ (+ (+ (+ (+ a b) c) a) b) c) d) e) f) g) h) i)"
:precision binary64
(+ (+ (+ (+ (+ (+ (+ (+ (+ (+ (+ a b) c) a) b) c) d) e) f) g) h) i))