FixPointCS icon indicating copy to clipboard operation
FixPointCS copied to clipboard

What is exactly approximate RcpPolyXX methods in FixedUtils.cs?

Open KichangKim opened this issue 3 years ago • 0 comments

Hi. I'm studying fixed point arithmetic and this FixPointCS is excellent material.

My question is, what is RcpPolyXX approximate? 1/x or 1/(x + 1)?

In Div() method, it used with one subtracted value from original value, like int res = FixedUtil.RcpPoly6(n - ONE);, not FixedUtil.RcpPoly(n) so it is quite confusing.

KichangKim avatar Jul 19 '22 03:07 KichangKim