Average Error: 5.2 → 5.2
Time: 2.9s
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 r502663 = x;
        double r502664 = 1.0;
        double r502665 = y;
        double r502666 = r502665 * r502665;
        double r502667 = r502664 + r502666;
        double r502668 = r502663 * r502667;
        return r502668;
}

double f(double x, double y) {
        double r502669 = x;
        double r502670 = 1.0;
        double r502671 = y;
        double r502672 = r502671 * r502671;
        double r502673 = r502670 + r502672;
        double r502674 = r502669 * r502673;
        return r502674;
}

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.2
Target0.1
Herbie5.2
\[x + \left(x \cdot y\right) \cdot y\]

Derivation

  1. Initial program 5.2

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

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

Reproduce

herbie shell --seed 2020049 
(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))))