Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  ASTROLIB  >  FACTOR

FACTOR

FACTOR

Name


      FACTOR

Purpose


      Find prime factors of a given number.

Category


Calling Sequence


      factor, x, p, n

Inputs


      x = Number to factor (>1). in

Keyword Parameters


Keywords


        /QUIET means do not print factors.
        /DEBUG Means list steps as they happen.
        /TRY Go beyond 20000 primes.

Outputs


      p = Array of prime numbers. out
      n = Count of each element of p. out

Common Blocks


Notes


      Note: see also prime, numfactors, print_fact.

Modification History


      R. Sterner. 4 Oct, 1988.
      RES 25 Oct, 1990 --- converted to IDL V2.
      R. Sterner, 1999 Jun 30 --- Improved (faster, bigger).
      R. Sterner, 1999 Jul 7 --- Bigger values (used unsigned).
      R. Sterner, 1999 Jul 9 --- Tried to make backward compatable.
      R. Sterner, 2000 Jan 06 --- Fixed to ignore non-positive numbers.
      Johns Hopkins University Applied Physics Laboratory.
  Copyright (C) 1988, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us