Hi Mark. Yes it is CORDIC. You are pushing one value down to zero and two others are becoming magnitude and angle. It's easy to search altavista for details. WBR Dmitry. > I'm working on a compass project where I have two magneto resistive sensors > connected to a couple PIC analog inputs. This effectively generates a sin > and cos value for the angle of the magnetic field. What is the trig, > CORDIC, or whatever function that I need to use to turn the sin and cos > value into a single angle value? > > Thanks. Mark P -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu