View Full Version : Cordic functions...
Zalumaskov
13-02-2005, 00:12
I'm using the Cordic trig functions but I get weird values...
sin(0) and cos(0) both give me -4, you see my problem; what am I doing wrong?
Alan Anderson
13-02-2005, 00:58
I'm using the Cordic trig functions but I get weird values...
sin(0) and cos(0) both give me -4, you see my problem; what am I doing wrong?
How are you checking the return values? It could be something as simple as trying to printf a non-int using the %d format specifier, giving a bad answer onscreen while the value is perfectly fine.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.