Average Error: 0.0 → 0.0
Time: 1.2s
Precision: binary64
\[x - y \cdot y\]
\[\frac{x + {y}^{2}}{\frac{x + y \cdot y}{x - y \cdot y}}\]
x - y \cdot y
\frac{x + {y}^{2}}{\frac{x + y \cdot y}{x - y \cdot y}}
(FPCore (x y) :precision binary64 (- x (* y y)))
(FPCore (x y)
 :precision binary64
 (/ (+ x (pow y 2.0)) (/ (+ x (* y y)) (- x (* y y)))))
double code(double x, double y) {
	return ((double) (x - ((double) (y * y))));
}
double code(double x, double y) {
	return (((double) (x + ((double) pow(y, 2.0)))) / (((double) (x + ((double) (y * y)))) / ((double) (x - ((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 0.0

    \[x - y \cdot y\]
  2. Using strategy rm
  3. Applied flip--_binary6430.9

    \[\leadsto \color{blue}{\frac{x \cdot x - \left(y \cdot y\right) \cdot \left(y \cdot y\right)}{x + y \cdot y}}\]
  4. Simplified31.0

    \[\leadsto \frac{\color{blue}{x \cdot x - {y}^{4}}}{x + y \cdot y}\]
  5. Using strategy rm
  6. Applied sqr-pow_binary6430.9

    \[\leadsto \frac{x \cdot x - \color{blue}{{y}^{\left(\frac{4}{2}\right)} \cdot {y}^{\left(\frac{4}{2}\right)}}}{x + y \cdot y}\]
  7. Applied difference-of-squares_binary6430.9

    \[\leadsto \frac{\color{blue}{\left(x + {y}^{\left(\frac{4}{2}\right)}\right) \cdot \left(x - {y}^{\left(\frac{4}{2}\right)}\right)}}{x + y \cdot y}\]
  8. Applied associate-/l*_binary640.0

    \[\leadsto \color{blue}{\frac{x + {y}^{\left(\frac{4}{2}\right)}}{\frac{x + y \cdot y}{x - {y}^{\left(\frac{4}{2}\right)}}}}\]
  9. Simplified0.0

    \[\leadsto \frac{x + {y}^{\left(\frac{4}{2}\right)}}{\color{blue}{\frac{x + y \cdot y}{x - y \cdot y}}}\]
  10. Final simplification0.0

    \[\leadsto \frac{x + {y}^{2}}{\frac{x + y \cdot y}{x - y \cdot y}}\]

Reproduce

herbie shell --seed 2020219 
(FPCore (x y)
  :name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1"
  :precision binary64
  (- x (* y y)))