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 ((double) (x + ((double) (x * x))));
}
double code(double x) {
return ((double) (x * ((double) (x + 1.0))));
}



Bits error versus x
Results
Initial program Error: 0.0 bits
rmApplied *-un-lft-identityError: 0.0 bits
Applied distribute-rgt-outError: 0.0 bits
SimplifiedError: 0.0 bits
Final simplificationError: 0.0 bits
herbie shell --seed 2020204
(FPCore (x)
:name "Main:bigenough1 from B"
:precision binary64
(+ x (* x x)))