\mathsf{fma}\left(x, y, z\right) - \left(1 + \left(x \cdot y + z\right)\right)\langle \left( \langle \left( \mathsf{fma}\left(x, y, z\right) - \left(1 + \left(\sqrt[3]{z + x \cdot y} \cdot \sqrt[3]{z + x \cdot y}\right) \cdot \left(\sqrt[3]{\sqrt[3]{z + x \cdot y}} \cdot \left(\sqrt[3]{\sqrt[3]{z + x \cdot y}} \cdot \sqrt[3]{\sqrt[3]{z + x \cdot y}}\right)\right)\right) \right)_{binary64} \rangle_{posit16} \right)_{posit16} \rangle_{binary64}(FPCore (x y z) :precision binary64 (- (fma x y z) (+ 1.0 (+ (* x y) z))))
(FPCore (x y z)
:precision binary64
(cast
(!
:precision
posit16
(cast
(!
:precision
binary64
(-
(fma x y z)
(+
1.0
(*
(* (cbrt (+ z (* x y))) (cbrt (+ z (* x y))))
(*
(cbrt (cbrt (+ z (* x y))))
(* (cbrt (cbrt (+ z (* x y)))) (cbrt (cbrt (+ z (* x y))))))))))))))



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 45.0 |
|---|---|
| Target | 0 |
| Herbie | 44.2 |
Initial program 45.0
rmApplied insert-posit1644.9
Simplified44.9
rmApplied add-cube-cbrt_binary6444.2
rmApplied add-cube-cbrt_binary6444.2
Final simplification44.2
herbie shell --seed 2020288
(FPCore (x y z)
:name "simple fma test"
:precision binary64
:herbie-target
-1.0
(- (fma x y z) (+ 1.0 (+ (* x y) z))))