2 \cdot \left(x \cdot x - x \cdot y\right)
\left(2 \cdot x\right) \cdot \left(x - y\right)
double f(double x, double y) {
double r370366 = 2.0;
double r370367 = x;
double r370368 = r370367 * r370367;
double r370369 = y;
double r370370 = r370367 * r370369;
double r370371 = r370368 - r370370;
double r370372 = r370366 * r370371;
return r370372;
}
double f(double x, double y) {
double r370373 = 2.0;
double r370374 = x;
double r370375 = r370373 * r370374;
double r370376 = y;
double r370377 = r370374 - r370376;
double r370378 = r370375 * r370377;
return r370378;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied pow10.0
Applied pow10.0
Applied pow10.0
Applied pow-prod-down0.0
Applied pow-prod-down0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019199 +o rules:numerics
(FPCore (x y)
:name "Linear.Matrix:fromQuaternion from linear-1.19.1.3, A"
:herbie-target
(* (* x 2.0) (- x y))
(* 2.0 (- (* x x) (* x y))))