Bug introduced in 8.0.1 or earlier and fixed in 10.0.0
Two years ago I tried an evaluation copy of Mathematica. I reported
various inaccuracies in the GeoDistance routine to which I never
received any fix. Could someone check whether GeoDistance is any more
accurate now? Thanks.
Here are the problems I reported on June 20, 2011:
Mathematica Correct Error
GeoDistance[{30, 0}, {-30, 180}] -> 19928486.7 20003931.5 -75444
GeoDistance[{0.4, 0}, {0.4, 180}] -> 19915473.0 19915472.0 1
GeoDistance[{0, 0}, {0.5, 179.5}] -> 19936426.5 19936288.6 138
"ITRF00"as the reference frame, andGeoDistance[]uses Vincenty's method (Method -> "Vincenty75") for distances. – J. M.'s missing motivation Jun 06 '13 at 03:56"InverseMaxIterations"forGeoDistance[], I still get the incorrect results for the first two, but I get something much nearer to the "correct" value for the third example. If you want to debug what's happening, you might want to set the option"InverseVerbose"toTrue. – J. M.'s missing motivation Jun 06 '13 at 11:51"Vincenty75"method has known limitations; so ifGeoDistanceis still using this method, the results will be suspect for nearly antipodal points. Incidentally, Vincenty himself recognized the problems with his method and supplied a fix that went some way to curing the problems. – cffk Jun 06 '13 at 12:54Method,"ExtendedNewtonRaphson". It fails on your first example, but returns results close to the "correct" ones for the other two. – J. M.'s missing motivation Jun 06 '13 at 14:13