Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIs There A Megafunction For Arctan ?
hi everyone, is there any megafunctşon that implements arctan ? is there anyone know about this? thanks..
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- I suggest to use a look up table that store coarse values (as a an example 2^10 values that are the exact values when the 6 LSB of your input are zero). To get the final value interpolate between two adjacent points. Note that your function is quite linear around zero and almost flat far from zero. it should be easy to approximate. --- Quote End --- Right. If youa also utilize the symmetry between x and y in arctan(x/y), you need a table over 45 degree only. An interpolated table with 256 points can achieve about 16 bit accuracy.