Manuals/calci/DISTANCE

From ZCubes Wiki
Revision as of 21:33, 24 October 2013 by MassBot1 (talk | contribs) (Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''DISTANCE'''(point1,point2) where '''point1''' is any point with coordinates[x1,y1] '''point2''' is any po...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DISTANCE(point1,point2)

where

point1 is any point with coordinates[x1,y1]

point2 is any point with coordinates[x2,y2]


DISTANCE function returns the distance between two points.

Formula:

DISTANCE = sqrt( (x2-x1)^2  + (y2-y1)^2 )


DISTANCE returns NaN if any of x1,y1,x2,y2 is not real .


DISTANCE


Lets see an example in (Column2Row1)

=DISTANCE([Column1Row1,Column1Row2],[Column1Row3,Column1Row4])

Returns 1.414214 for DISTANCE([2,3],[3,4])


Syntax

Remarks

Examples

Description