x + x \cdot x
x \cdot \left(x + 1\right)
(FPCore (x) :precision binary64 (+ x (* x x)))
(FPCore (x) :precision binary64 (* x (+ x 1.0)))
double code(double x) {
return x + (x * x);
}
double code(double x) {
return x * (x + 1.0);
}



Bits error versus x
Results
Initial program 0.0
rmApplied distribute-rgt1-in_binary640.0
Final simplification0.0
herbie shell --seed 2020233
(FPCore (x)
:name "Main:bigenough1 from B"
:precision binary64
(+ x (* x x)))