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

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 0.0

    \[\left(x + 1\right) \cdot y - x\]
  2. Using strategy rm
  3. Applied flip3-+16.5

    \[\leadsto \color{blue}{\frac{{x}^{3} + {1}^{3}}{x \cdot x + \left(1 \cdot 1 - x \cdot 1\right)}} \cdot y - x\]
  4. Applied associate-*l/18.4

    \[\leadsto \color{blue}{\frac{\left({x}^{3} + {1}^{3}\right) \cdot y}{x \cdot x + \left(1 \cdot 1 - x \cdot 1\right)}} - x\]
  5. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{\left(1 \cdot y + 1 \cdot \left(x \cdot y\right)\right)} - x\]
  6. Simplified0.0

    \[\leadsto \color{blue}{1 \cdot \left(y + x \cdot y\right)} - x\]
  7. Final simplification0.0

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

Reproduce

herbie shell --seed 2020150 
(FPCore (x y)
  :name "Data.Colour.SRGB:transferFunction from colour-2.3.3"
  :precision binary64
  (- (* (+ x 1.0) y) x))