% -*- texinfo -*- % @deftypefn {Function File} {@var{p} =} factor (@var{q}) % @deftypefnx {Function File} {[@var{p}, @var{n}] =} factor (@var{q}) % % Return prime factorization of @var{q}. That is, @code{prod (@var{p}) % == @var{q}} and every element of @var{p} is a prime number. If % @code{@var{q} == 1}, returns 1. % % With two output arguments, return the unique primes @var{p} and % their multiplicities. That is, @code{prod (@var{p} .^ @var{n}) == % @var{q}}. % @seealso{gcd, lcm} % @end deftypefn