Average Error: 5.4 → 5.4
Time: 11.4s
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 r323691 = x;
        double r323692 = 1.0;
        double r323693 = y;
        double r323694 = r323693 * r323693;
        double r323695 = r323692 + r323694;
        double r323696 = r323691 * r323695;
        return r323696;
}

double f(double x, double y) {
        double r323697 = x;
        double r323698 = 1.0;
        double r323699 = y;
        double r323700 = r323699 * r323699;
        double r323701 = r323698 + r323700;
        double r323702 = r323697 * r323701;
        return r323702;
}

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))))