i`m doing thesis about comparing calculation of arctan by polynomial and CORDIC. I`ve read a lot of journal and books about CORDIC and this is what i understand.
1. make x and y
2. make iterations
3. process with cordic calculation
4. the arctan result is calculating by arctan(y/x).
what i m confused that in cordic equation there`s
Zi=Zo-arctan(2^-i)
i can do Z=0 , but how can i get arctan(2^-i) values? from what i m reading that it come from arctan tables? how can i make arctan tables?
and let say i m looking arctan(0.1) = ...
is that mean that i have to set the X=1 and the Y =0.1 ???
i m not that good in programming.
anyone can help me?
ps. i`m using borland c++ builder
4 9287
i`m doing thesis about comparing calculation of arctan by polynomial and CORDIC. I`ve read a lot of journal and books about CORDIC and this is what i understand.
1. make x and y
2. make iterations
3. process with cordic calculation
4. the arctan result is calculating by arctan(y/x).
what i m confused that in cordic equation there`s
Zi=Zo-arctan(2^-i)
i can do Z=0 , but how can i get arctan(2^-i) values? from what i m reading that it come from arctan tables? how can i make arctan tables?
and let say i m looking arctan(0.1) = ...
is that mean that i have to set the X=1 and the Y =0.1 ???
i m not that good in programming.
anyone can help me?
ps. i`m using borland c++ builder
which cordic equation are you using to determine arctan()? do you have a reference?
arctan can take two parameters, the X and Y coordinates, e.g. atan2()
http://cplusplus.com/reference/clibrary/cmath/atan2.html
or one parameter X / Y, e.g. atan()
http://cplusplus.com/reference/clibrary/cmath/atan.html
which cordic equation are you using to determine arctan()? do you have a reference?
arctan can take two parameters, the X and Y coordinates, e.g. atan2()
http://cplusplus.com/reference/clibrary/cmath/atan2.html
or one parameter X / Y, e.g. atan()
http://cplusplus.com/reference/clibrary/cmath/atan.html
i`m counting arctan for one parameter using this equation
xi+1=xi+ - yi*2^-i
yi+1=yi+ - xi*2^-i
Zi+1=Zi+ - arctan (2^-i)
the plus n minus is depend on the Y value
i`m counting arctan for one parameter using this equation
xi+1=xi+ - yi*2^-i
yi+1=yi+ - xi*2^-i
Zi+1=Zi+ - arctan (2^-i)
the plus n minus is depend on the Y value
have you seen
http://www.voidware.com/cordic.htm
have you seen
http://www.voidware.com/cordic.htm
thanks you a lot, it help me very much
Sign in to post your reply or Sign up for a free account.
Similar topics
by: CoolPint |
last post by:
Can anyone explain how I can make the following function accept an
default arguement for the last parameter, which should be an optional
functor?
template <typename T, typename FUNCTOR>
void...
|
by: Shi Mu |
last post by:
any python module to calculate sin, cos, arctan?
|
by: Davidlohr Bueso |
last post by:
Hi,
I've been trying to write some trigonometric functions of the math library
(sin, cos, tan, etc, etc.) in C and I've learned that instead of using
series, the best way to go is by using the...
|
by: masood.iqbal |
last post by:
I know that this topic may inflame the "C language Taleban", but is
there any prospect of some of the neat features of C++ getting
incorporated in C? No I am not talking out the OO stuff. I am...
|
by: Gerald |
last post by:
Recently, my program need to be run in embeded enviroment, and I cann't
use standard library. But I need to use arctan(x), so I implement it
like the following:
inline double pow(double x,...
|
by: Dave Townsend |
last post by:
Hi,
I'm working on an implementation of the CORDIC
algorithm for a library of functions.
One of the benefits of the CORDIC algorithm is that you
can implement it with simple additions of...
|
by: Zytan |
last post by:
Anyone do any tests on it? I would assume it has improved since C's
rand(), but who knows. For some reason, and it could just be
coincidence, I seem to see patterns. But even a crappy rand()...
|
by: Roman Mashak |
last post by:
Hello,
I'd like to make a simple replacement of 'pow()' function for the embedded
platform I'm working on. What is the better way, probably bit shifting?
Thanks.
Best regards, Roman Mashak.
|
by: v4vijayakumar |
last post by:
In computer based, two player, board games, how to make computer play?
Are there any formal ways to _teach_ computer, to choose best possible
move?
I know this is kind of off-topic here. Please...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |