|HELP ... NXT not computing properly ACOS math function
|Page 1 of 1|
|Author:||rax20T [ Sat Aug 15, 2009 9:19 am ]|
|Post subject:||HELP ... NXT not computing properly ACOS math function|
I'm posting my question previously from NXT IDE forum to this section as it may be more appropriate here. Also as a background, the 2 latitudes and longitudes inputs will be provided by an external bluetooth GPS. I am just making sure that this computational section of the proposed bigger program works and here I am hitting a wall .
Any help will be much appreciated.
I'm trying to compute the distance between two lat long locations using Great Circle distance formula. All aspects of the formula works as expected except when acos value is computed! The results of running the program on the nxt running 1.4 firmware can be found in the 2nd image. The values that are not being computed properly starts on line 4 down to line 8. It should be a straight forward computations but for some reason, it is not coming out right. The first image shows the "right" values computed in excel.
Hope somebody out there can help.
The program is as follows:
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group