A-math-routine-to-calculate-the-atan(x-y)-using-C
所属分类:汇编语言
开发工具:C/C++
文件大小:3KB
下载次数:31
上传日期:2011-07-26 18:01:32
上 传 者:
microorganisme
说明: calculates the arctangent of the input values x and y (sometimes called atan2)
by using a CORDIC (COordinate Rotation on a DIgital Computer) algorithm for 8051 microcontroller
文件列表:
atan.c (7265, 1999-11-25)
Dear user,
this package contains 2 files :
- readme.txt (you read it right now !)
- atan.c
atan.c calculates the arctangent of the input values x and y (sometimes called atan2)
by using a CORDIC (COordinate Rotation on a DIgital Computer) algorithm.
It uses a itterative method and only shift, add and substract operations, so its fast
implementation to C with no floating point arithmetics is easy.
Attention ! Although the c-function and the table are written with a few lines, the
compilation results in about 1,7KByte of binary code because of using long ints !
Questions and/or suggestions are welcome.
Regards, Thorsten Godau
thorsten.godau@gmx.de
近期下载者:
相关文件:
收藏者: