Math help needed - Warning complex equation!!....read only if brain is in stable conditon

Laura Creighton lac at strakt.com
Thu Feb 6 09:18:00 EST 2003


> 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)
> 
> when trying to compile I get the error "SyntaxError: invalid syntax".

You had our attention anyway.  Please post the actual output.

is that  \226 really in your code?

Laura





More information about the Python-list mailing list