Results 1 to 4 of 4

Math Help - Grid Distances

  1. #1
    Newbie
    Joined
    Feb 2010
    Posts
    3

    Grid Distances

    Given a basic X & Y grid what is the formula to determine distance between two grid items?
    I.E
    First item is at grid 5, 6 second grid item is at 7, 8.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    -1
    e^(i*pi)'s Avatar
    Joined
    Feb 2009
    From
    West Midlands, England
    Posts
    3,053
    Thanks
    1
    Quote Originally Posted by Mystery View Post
    Given a basic X & Y grid what is the formula to determine distance between two grid items?
    I.E
    First item is at grid 5, 6 second grid item is at 7, 8.
    It's a form of Pythagoras' Theorem.

    For two points (x_1, y_1) and  (x_2,y_2) the distance between them (d) is given by:

    d = \sqrt{(y_2-y_1)^2 + (x_2-x_1)^2}
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,391
    Thanks
    1476
    Awards
    1
    Quote Originally Posted by Mystery View Post
    Given a basic X & Y grid what is the formula to determine distance between two grid items?
    First item is at grid 5, 6 second grid item is at 7, 8.
    No it is not a form of Pythagoras' Theorem.
    It is the grid-metric or the 'taxicab' metric.
    If P(x_1,y_1)~\&~Q(x_2,y_2) then the grid-metric is d(P,Q)=\left| {x_1  - x_2 } \right| + \left| {y_1  - y_2 } \right|
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    Feb 2010
    Posts
    4
    what kind of grid is it?
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Distances
    Posted in the Geometry Forum
    Replies: 10
    Last Post: December 10th 2010, 03:29 PM
  2. Arakawa's C grid
    Posted in the Advanced Applied Math Forum
    Replies: 2
    Last Post: January 31st 2010, 02:38 PM
  3. Ten by Ten grid
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: November 2nd 2009, 02:50 PM
  4. nxn grid problem.
    Posted in the Math Topics Forum
    Replies: 4
    Last Post: October 31st 2009, 07:00 AM
  5. Help With A Grid
    Posted in the Pre-Calculus Forum
    Replies: 2
    Last Post: October 31st 2008, 12:34 PM

Search Tags


/mathhelpforum @mathhelpforum