(FPCore (x y z) :precision binary64 (- (/ (* x y) 2.0) (/ z 8.0)))
(FPCore (x y z) :precision binary64 (fma x (* 0.5 y) (* z -0.125)))
double code(double x, double y, double z) {
return ((x * y) / 2.0) - (z / 8.0);
}
double code(double x, double y, double z) {
return fma(x, (0.5 * y), (z * -0.125));
}
function code(x, y, z) return Float64(Float64(Float64(x * y) / 2.0) - Float64(z / 8.0)) end
function code(x, y, z) return fma(x, Float64(0.5 * y), Float64(z * -0.125)) end
code[x_, y_, z_] := N[(N[(N[(x * y), $MachinePrecision] / 2.0), $MachinePrecision] - N[(z / 8.0), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_] := N[(x * N[(0.5 * y), $MachinePrecision] + N[(z * -0.125), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y}{2} - \frac{z}{8}
\mathsf{fma}\left(x, 0.5 \cdot y, z \cdot -0.125\right)



Bits error versus x



Bits error versus y



Bits error versus z
Initial program 0.0
Simplified0.0
Applied egg-rr32.5
Taylor expanded in z around 0 0.6
Simplified0.0
Final simplification0.0
herbie shell --seed 2022150
(FPCore (x y z)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, D"
:precision binary64
(- (/ (* x y) 2.0) (/ z 8.0)))