Average Error: 5.0 → 5.0
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 r467005 = x;
        double r467006 = 1.0;
        double r467007 = y;
        double r467008 = r467007 * r467007;
        double r467009 = r467006 + r467008;
        double r467010 = r467005 * r467009;
        return r467010;
}

double f(double x, double y) {
        double r467011 = x;
        double r467012 = 1.0;
        double r467013 = y;
        double r467014 = r467013 * r467013;
        double r467015 = r467012 + r467014;
        double r467016 = r467011 * r467015;
        return r467016;
}

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

Derivation

  1. Initial program 5.0

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

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

Reproduce

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