Average Error: 5.7 → 5.7
Time: 3.8s
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 r488055 = x;
        double r488056 = 1.0;
        double r488057 = y;
        double r488058 = r488057 * r488057;
        double r488059 = r488056 + r488058;
        double r488060 = r488055 * r488059;
        return r488060;
}

double f(double x, double y) {
        double r488061 = x;
        double r488062 = 1.0;
        double r488063 = y;
        double r488064 = r488063 * r488063;
        double r488065 = r488062 + r488064;
        double r488066 = r488061 * r488065;
        return r488066;
}

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

Derivation

  1. Initial program 5.7

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

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

Reproduce

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