# PICMicrocontollerBasicMath Multiplication Methods

Archive:

See:

Code:

+

• http://www.reenigne.org/blog/multiplying-faster-with-squares/ (a+b)2 = a2 + b2 + 2ab and (a-b)2 = a2 + b2 - 2ab and subtracting these gives: 4ab = (a+b)2 - (a-b)2 or ab = (a+b)2/4 - (a-b)2/4. So if we keep in memory a table of x2/4 we can do a multiply with an add, two subtractions and two table lookups. The tables have a+b number of entries rather than a*b, but must hold values as large as a*b if the full range of possible output is to be supported.+

Questions:

 file: /Techref/microchip/math/mul/index.htm, 7KB, , updated: 2022/5/16 11:42, local time: 2024/6/17 17:22, TOP NEW HELP FIND:  3.236.142.143:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! PIC Microcontroller Basic Math Multiplication Methods

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here:
if you want a response, please enter your email address:
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant"

.