x - y \cdot z
\mathsf{fma}\left(-y, z, x\right)double f(double x, double y, double z) {
double r450855 = x;
double r450856 = y;
double r450857 = z;
double r450858 = r450856 * r450857;
double r450859 = r450855 - r450858;
return r450859;
}
double f(double x, double y, double z) {
double r450860 = y;
double r450861 = -r450860;
double r450862 = z;
double r450863 = x;
double r450864 = fma(r450861, r450862, r450863);
return r450864;
}




Bits error versus x




Bits error versus y




Bits error versus z
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt31.9
rmApplied pow131.9
Applied pow131.9
Applied pow-prod-down31.9
Simplified0
Final simplification0
herbie shell --seed 2020043 +o rules:numerics
(FPCore (x y z)
:name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, C"
:precision binary64
:herbie-target
(/ (+ x (* y z)) (/ (+ x (* y z)) (- x (* y z))))
(- x (* y z)))