At 19:02 04/13/99 -0400, Jason Wolfson wrote: >OK, now I'm starting to spin my wheels, > >What would be the best way to calculate >an arcTangent with a PIC? > >I have 2 values, x and y, values are 0-100, >I need to find an angle by taking the >arcTan of (y/x). like dave said, a table is probably the best. look at scott dattalo's sine function for a 2-dim example. but you either have 3 dimensions (like (x,y)->angle) or do a division first, and then you'd possibly have to cope with a big range of possible values. depends on range/precision/resolution requirements. ge