STScI Logo

factor stsdas.analysis.fourier


NAME · USAGE · DESCRIPTION · PARAMETERS · EXAMPLES · BUGS · REFERENCES
HELP · SEE_ALSO

NAME

factor -- Display prime factors of a number.

USAGE

factor number

DESCRIPTION

Factor a given integer into primes.

This might be useful for checking to see how the axis lengths of a dataset decompose with respect to the available Winograd kernels. If the result is a large prime number, you probably want to resample the data.

PARAMETERS

number = [integer, min=1]
Number to factor.
(showwks = no) [boolean]
Show Winograd kernel sizes?

EXAMPLES

1. Find the prime factors of 12,498.


    fo> factor 12498

BUGS

REFERENCES

Knuth, Fundamental Algorithms, sec. 1.3.2, algorithm P, p. 143.

HELP

For assistance using this or any other tasks, please contact help@stsci.edu or call the help desk at 410-338-1082.

SEE ALSO

Type "help fourier option=sys" for a higher-level description of the fourier package.


Source Code · Package Help · Search Form · STSDAS