Average Error: 0.0 → 0.0
Time: 787.0ms
Precision: 64
\[x - y \cdot y\]
\[x - y \cdot y\]
x - y \cdot y
x - y \cdot y
double f(double x, double y) {
        double r127539 = x;
        double r127540 = y;
        double r127541 = r127540 * r127540;
        double r127542 = r127539 - r127541;
        return r127542;
}

double f(double x, double y) {
        double r127543 = x;
        double r127544 = y;
        double r127545 = r127544 * r127544;
        double r127546 = r127543 - r127545;
        return r127546;
}

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. Final simplification0.0

    \[\leadsto x - y \cdot y\]

Reproduce

herbie shell --seed 2019323 +o rules:numerics
(FPCore (x y)
  :name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1"
  :precision binary64
  (- x (* y y)))