Average Error: 5.5 → 5.5
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 r571217 = x;
        double r571218 = 1.0;
        double r571219 = y;
        double r571220 = r571219 * r571219;
        double r571221 = r571218 + r571220;
        double r571222 = r571217 * r571221;
        return r571222;
}

double f(double x, double y) {
        double r571223 = x;
        double r571224 = 1.0;
        double r571225 = y;
        double r571226 = r571225 * r571225;
        double r571227 = r571224 + r571226;
        double r571228 = r571223 * r571227;
        return r571228;
}

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

Derivation

  1. Initial program 5.5

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

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

Reproduce

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