Re: [PIC] Easiest way to find the inverse of a 16-bit integer
"Harold Hallikainen" <[email protected]> Mon, 8 Dec 2025 17:02:27 -0700
| Newsgroups | gmane.comp.hardware.microcontrollers.pic |
|---|---|
| Message-ID | <[email protected]> |
On Mon, December 8, 2025 4:26 pm, RussellMc wrote: > Perplexity suggests small look up table then refined by Newton Rapson for > rapid convergence. > > https://www.perplexity.ai/search/algorithms-for-1-x-for-16-bit-Q77Z0QO_QS > WGPRQyEXlFrg > > > > Russell. That looks similar to the approach at https://pic.hallikainen.org/techref/microchip/math/div/recip32k-ng.htm . Harold > > > On Tue, Dec 9, 2025, 12:17â¯PM Dwayne Reid <[email protected]> > wrote: > > >> Good day to all. >> >> >> As part of my current project, I need to find the inverse of a 16-bit >> binary integer. That is: 1/X. >> >> I was going to dig out my old division routines but was thinking there >> may be an easier way to go. >> >> Suggestion greatly appreciated. >> >> >> Many thanks! >> >> >> dwayne -- >> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >> View/change your membership options at >> https://mailman.mit.edu/mailman/listinfo/piclist >> >> > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > https://mailman.mit.edu/mailman/listinfo/piclist > > -- Not sent from an iPhone. -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at https://mailman.mit.edu/mailman/listinfo/piclist