RedCrab Calculator
 

Hotels Combined INT


    Distance   Grad   Position  
Shawacademy.com

Homesquare.com

Available in RedCrab PLUS

Distance
  • Calculates the distance between two points in a coordinate system

  • The endpoints of the distance are defined with two objects of the class Point
Syntax
  • Distance (Point(x,y), Point(x,y))
Example
  • Distance(Point(1,5),Point(4,8))= 4.24

Description
  • By using the point objects, the distance can also be calculated with arguments other than x / y. The class Point contains own methods for the calculation of the properties.

Examples
  • Suppose that only the x-coordinates are known. y is unknown, but we can determine the angles from the 0 point

  • We determine for Point a an angle to the x-axis of 78.69 ° and for Point b 63.43 °

  • In the initialization of Point, a command string must be inserted to indicate that the arguments are the position x and the angle alpha

Distance(Point("x,α",1,78.69), Point("x,α",4,63.43))=4.24

 
References
External references
 
-
           
  Products RedCrab Calculator RedCRab Manual  
      RedCrab Software - Singapore - Sengkang West Way