FIND DISTANCE







Syntax




   FIND @name DISTANCE
 
        (2:2){ FROM @body
             | @options
             | OF      @body
             | BETWEEN @body @body }
        (1:1){ GREATER THAN           @number
             | LESS THAN              @number
             | EQUAL TO               @number
             | BETWEEN  @number AND   @number
             | ABSOLUTE MINIMUM PLUS  @number(0:)
             | ABSOLUTE MAXIMUM MINUS @number(0:)
             | ABSOLUTE MINIMUM
             | ABSOLUTE MAXIMUM
             | LOCAL    MINIMUM
             | LOCAL    MAXIMUM  }
 
        (0:1){ WITHIN @name }
 
        STEP SIZE @number(0:)


Description




The FIND DISTANCE command locates intervals during which the apparent distance OF a target body as seen FROM an observing body satisfies a specified constraint.

It may also be used to locate intervals during which the apparent distance BETWEEN two target bodies as seen from an observing body satisfies a specified constraint.

Distances are always between centers of mass.

The FIND command requires you to specify a step size to use when searching for events. See the chapter About Constraints for a discussion of STEP SIZE.



Examples






Example 1



In the following example, the FIND DISTANCE command is used to determine intervals when asteroid Hektor is within .1 AU of its closest approach to Jupiter.

   SET STEPSIZE .25 YEARS;
 
   FIND schedule CLOSEST
      when the DISTANCE BETWEEN HEKTOR   JUPITER
      FROM EARTH ABSOLUTE MINIMUM PLUS 0.1 AU
      STEP SIZE STEPSIZE;


Example 2



In the second example, the FIND DISTANCE command is used to determine intervals when asteroid Hungaria passes within 1 AU of Earth.

   FIND CLOSE DISTANCE OF HUNGARIA
      FROM EARTH LESS THAN 1 AU
      STEP SIZE STEPSIZE;


Related Topics




  1. Find Range Rate
  2. The Percy Help System