The Wisconsin Geocaching Association

  Login or Register

Website Navigation

62.png Home

49.png Information Center
26.png WGA Newsletters
24.png Reviewer's Words
53.png Presentation Resources
39.png Geocaching Files
27.png Bookmarks
56.png Location Rules and Regs
49.png BOD Info Center

17.png Forums
16.png New Posts
20.png Unanswered Posts

calendar_day.png Upcoming Events
mapicon.png Map
29.png Calendar
11.png Submit Event

mapicon.png WGA State Park CachesNew content !

shield_star.png Cache of the Month
mapicon.png Past Winners Map

LonelyCache.png Lonely Cache Game
mapicon.png Current Map
26.png Scoreboard
11.png Submit Report

rescueiconsm.png Cache Rescue
11.png Submit a Mission

icon_community.gif Members
27.png Your Account
47.png Private Messages
contact_blue.png WGA Member Map
Geocaching_LIVE_poweredby_16.png GC.COM Authorization

icon_members.gif News
tree-T.gif Topics
tree-T.gif Archives
tree-L.gif Submit News

image_cultured.png Photo Gallery
tree-T.gif Updates
tree-L.gif Popular

shield.png Fun Stuff
28.png Recent Logs
TB.gif Picnic to Picnic TB Race Standings
TB.gif WGA Hauler

49.png Board of Directors
 
Contact Us

 
Facebook

Wisconsin Geocaching Association

 
Follow Us

Twitter Button

 
Subscribe to Newsletter

Subscribe to our mailing list

* indicates required
 
Geocaching.com Search
View Search Syntax
 
COTM
Winner -
July 2014 Northern Zone:
Call Box

Winner -
July 2014 Northeast Zone:
Twisted Metal

Winner -
July 2014 West Central Zone:
The Island

Winner -
July 2014 South Central Zone:
Puzzle of Books

Winner -
July 2014 Southeast Zone:
Make do with what you have

Winner -
July 2014 Series of the Month:
Door County Barn Quilt Series


More Info >>>

 
 
Wisconsin Geocaching Association: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Todd300




Joined: 2009-06-05
Posts: 2475
Location: Menominee, MI

PostPosted: Wed Dec 09, 2009 6:36 pm Reply with quote Back to top

How do I determine the distance between two sets of coordinates by using math, not a GPS? Doing this will help me on the way to solve a puzzle. Thanks Smile
 
View user's profile Send private message
hogrod
WGA Member



Joined: 2005-07-24
Posts: 639
Location: New glarus, WI

PostPosted: Wed Dec 09, 2009 8:28 pm Reply with quote Back to top

You can use the program FizzyCalc (free) to do this for you. once you have the program I believe what you are looking for is under the distance tab.

http://www.fizzymagic.net/Geocaching/FizzyCalc/
 
View user's profile Send private message
Team Deejay
WGA Member



Joined: 2005-10-02
Posts: 2390
Location: Rochester, WI, US

PostPosted: Thu Dec 10, 2009 9:17 am Reply with quote Back to top

If you are working on the puzzle that I think you are working on, pay close attention to the description and hints. Some people's view of the world is skewed, similar to that of people in the 12th century. I wonder if they were worried about sailing off the edge of the world!
 
View user's profile Send private message Send e-mail
Team Black-Cat
WGA Webmaster
WGA Webmaster



Joined: 2007-09-13
Posts: 6085
Location: Somewhere in Central WI

PostPosted: Thu Dec 10, 2009 11:59 am Reply with quote Back to top

Unless you REALLY need to do the math, you should probably find an online utility to get the distance.

But since you asked...
I recently created a function for a program I'm working on. Here's what I did.
Keep in mind that I am a programmer and not a mathmatician...

Start with decimal degrees instead of degrees and minutes. You can do the conversion on GC.com.

Convert each coordinate to radians:
Code:
A=(Point1Latitude * Pi /180)
B=(Point1Longitude * Pi /180)
C=(Point2Latitude * Pi /180)
D=(Point2Latitude * Pi /180)

Get the difference between the angles:
Code:
DLat=C-A
DLon=D-B

Now it gets fun...
Code:
X = Sin(DLat / 2) * Sin(DLat / 2) + Cos(A) * Cos(C) * Sin(DLon / 2) * Sin(DLon / 2)
Y = 2 * Atan2(Sqrt(X), Sqrt(1 - X))

To get miles, multiply Y by 3959.

Did I get it right Mathman?

Edited to add:
Atan2 might not be on your calculator. It is the angle whose tanget is the quotent of the two specified numbers.
 
View user's profile Send private message Visit poster's website
CodeJunkie
WGA Member



Joined: 2009-07-21
Posts: 8223
Location: Berlin, WI

PostPosted: Thu Dec 10, 2009 1:51 pm Reply with quote Back to top

Team Black-Cat wrote:
Code:
A=(Point1Latitude * Pi /180)
B=(Point1Longitude * Pi /180)
C=(Point2Latitude * Pi /180)
D=(Point2Latitude * Pi /180)


I assume you meant Point2Longitude for D.
 
View user's profile Send private message
Team Black-Cat
WGA Webmaster
WGA Webmaster



Joined: 2007-09-13
Posts: 6085
Location: Somewhere in Central WI

PostPosted: Thu Dec 10, 2009 4:19 pm Reply with quote Back to top

Yes I did, and thanks for catching that. I can't edit the original post anymore...
 
View user's profile Send private message Visit poster's website
Team Black-Cat
WGA Webmaster
WGA Webmaster



Joined: 2007-09-13
Posts: 6085
Location: Somewhere in Central WI

PostPosted: Fri Dec 11, 2009 11:44 am Reply with quote Back to top

The hard way
The easy way
 
View user's profile Send private message Visit poster's website
Miata
WGA Member



Joined: 2002-02-20
Posts: 860
Location: Neenah, WI

PostPosted: Fri Dec 11, 2009 6:05 pm Reply with quote Back to top

Team Black-Cat wrote:
The hard way
The easy way


Much better......

_________________
\"Political Correctness is a doctrine fostered by a delusional, illogical liberal minority, and rapidly promoted by an unscrupulous mainstream media, which holds forth the proposition that it is entirely possible to pick up a turd by the clean end. 
View user's profile Send private message Visit poster's website
CodeJunkie
WGA Member



Joined: 2009-07-21
Posts: 8223
Location: Berlin, WI

PostPosted: Fri Dec 11, 2009 10:43 pm Reply with quote Back to top

For a whole bunch of different versions of this, do a "Google" search using the following words:
gps distance calculator
 
View user's profile Send private message
Team Black-Cat
WGA Webmaster
WGA Webmaster



Joined: 2007-09-13
Posts: 6085
Location: Somewhere in Central WI

PostPosted: Sat Dec 12, 2009 12:04 am Reply with quote Back to top

CodeJunkie wrote:
For a whole bunch of different versions of this, do a "Google" search using the following words:
gps distance calculator

If you're having trouble sleeping, search for "haversine".
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2008 phpBB Group
:: Theme & Graphics by Daz :: Ported for PHP-Nuke by nukemods.com ::
All times are GMT - 6 Hours
 
Forums ©
 
Legal Notice | Privacy Policy | Terms of Use | Parental Consent Form | contact | Comments ]

All content © 2013 Wisconsin Geocaching Association, except comments and forum entries which are property of their posters.

The Groundspeak Geocaching Logo is a registered trademark of Groundspeak, Inc. Used with permission.
 


Use of this Web site constitutes acceptance of the WGA Terms of Use


Distributed by Raven PHP Scripts
New code written and maintained by the RavenNuke™ TEAM


(Original PHP-Nuke Code Copyright © 2004 by Francisco Burzi)
Page Generation: 0.18 Seconds

:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional & XHTML 1.0 Transitional Compliance by RavenNuke™ TEAM ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation :: W3C XHTML 1.0 Transitional Compliance Validation ::