Difference between revisions of "Manuals/calci/DISTANCE"
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
==Related Videos== | ==Related Videos== | ||
− | |||
− | |||
== See Also == | == See Also == |
Revision as of 13:16, 9 May 2019
DISTANCE (Point1,Point2)
- Where 'Point1' is any point with coordinates[x1,y1] and
- 'Point2' is any point with coordinates[x2,y2]
- DISTANCE(), returns the distance between two points.
Description
DISTANCE(Point1,Point2)
For Example, DISTANCE([2,3],[6,7]) returns 5.656854249492381
- This function returns the distance between two points using the following formula -
DISTANCE = SQRT( (x2-x1)^2 + (y2-y1)^2 )
= SQRT((6-2)^2 + (7-3)^2) = SQRT(32) = 5.656854249492381
- If any of the co-ordinates (x1,y1,x2,y2) is non-numeric, Calci returns an error message.
- If the function is not available, then load the geometry by using 'load geometry' command.