Average Error: 5.7 → 5.7
Time: 862.0ms
Precision: binary64
\[1 + x \cdot \left(1 + y \cdot y\right)\]
\[1 + x \cdot \left(1 + y \cdot y\right)\]
1 + x \cdot \left(1 + y \cdot y\right)
1 + x \cdot \left(1 + y \cdot y\right)
double code(double x, double y) {
	return ((double) (1.0 + ((double) (x * ((double) (1.0 + ((double) (y * y))))))));
}
double code(double x, double y) {
	return ((double) (1.0 + ((double) (x * ((double) (1.0 + ((double) (y * y))))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 5.7

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

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

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(+ 1 (* x (+ 1 (* y y))))"
  :precision binary64
  (+ 1.0 (* x (+ 1.0 (* y y)))))