Average Error: 5.8 → 5.8
Time: 11.3s
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 r327794 = x;
        double r327795 = 1.0;
        double r327796 = y;
        double r327797 = r327796 * r327796;
        double r327798 = r327795 + r327797;
        double r327799 = r327794 * r327798;
        return r327799;
}

double f(double x, double y) {
        double r327800 = x;
        double r327801 = 1.0;
        double r327802 = y;
        double r327803 = r327802 * r327802;
        double r327804 = r327801 + r327803;
        double r327805 = r327800 * r327804;
        return r327805;
}

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

Derivation

  1. Initial program 5.8

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

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

Reproduce

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