Dmitry, could you please explain how to apply CORDIC to exponential function? I just recently started to learn about that algorithm and how to use it for magnitude, phase, sine and cosine calculations. But I would like to learn how to use CORDIC for other elementary math. Not much pointers on the net :( BTW, it doesn't look so good for magnitude calculation. It takes around 1500 cycles for PIC to find sqrt(x^2+y^2), where x, y are 16 bit signed numbers. Probably, using good square and square root routines would be faster in that case. Thanks in advance, Nikolai P.S. Good starting point to get into CORDIC: http://www.dspguru.com/info/faqs/cordic.htm ---- Original Message ---- From: Dmitry Kiryashov Sent: Wednesday, August 16, 2000 16:57:11 To: PICLIST@MITVMA.MIT.EDU Subj: [PIC]: Algorithm for 10^x > Yeah, probably CORDIC is best what you can do with that. > For 12 bits you will need 12 cycles(or loops) to get > result. Try to search on the webs for CORDIC related > math for fast tracking into it. > WBR Dmitry. >> At 02:02 PM 8/16/00 +0100, Andrzej W.Baranski wrote: >> >> >Hello, >> >Does anybody know about an algorithm to calculate an exponential >> >function 10^x, where x is an 12-bits quantity. >> >> You can use a CORDIC algorithm. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu