Math help needed - Warning complex equation!!....read only if brain is in stable conditon
mjackson at alumni.caltech.edu
Thu Feb 6 15:20:43 CET 2003
jranchordas at hotmail.com (Jay) writes:
> right, now that I got your attention, I need help on the following
> piece of python code:
> distance = 1.15 * (180 * (acos((sin(pi * lat1 / 180) * sin(pi * lat2 /
> 180)) + (cos(pi * lat1 / 180) * cos(pi * lat2 / 180) * cos(pi * (lon2
> lon1) / 180))) / pi) * 60)
--^^-- what's this weird character here where a "-" ought to be?
Mark Jackson - http://www.alumni.caltech.edu/~mjackson
A retired physicist reading the /Encyclopaedia Britannica/
can do just so much toward securing world peace.
- Brian Hayes
More information about the Python-list