Average Error: 5.4 → 5.4
Time: 11.7s
Precision: 64
\[x \cdot \left(1 + y \cdot y\right)\]
\[x \cdot \left(1 + y \cdot y\right)\]
x \cdot \left(1 + y \cdot y\right)
x \cdot \left(1 + y \cdot y\right)
double f(double x, double y) {
        double r379596 = x;
        double r379597 = 1.0;
        double r379598 = y;
        double r379599 = r379598 * r379598;
        double r379600 = r379597 + r379599;
        double r379601 = r379596 * r379600;
        return r379601;
}

double f(double x, double y) {
        double r379602 = x;
        double r379603 = 1.0;
        double r379604 = y;
        double r379605 = r379604 * r379604;
        double r379606 = r379603 + r379605;
        double r379607 = r379602 * r379606;
        return r379607;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.4
Target0.1
Herbie5.4
\[x + \left(x \cdot y\right) \cdot y\]

Derivation

  1. Initial program 5.4

    \[x \cdot \left(1 + y \cdot y\right)\]
  2. Final simplification5.4

    \[\leadsto x \cdot \left(1 + y \cdot y\right)\]

Reproduce

herbie shell --seed 2019323 
(FPCore (x y)
  :name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
  :precision binary64

  :herbie-target
  (+ x (* (* x y) y))

  (* x (+ 1 (* y y))))