Home > freetb4matlab > specfun > factor.m

factor

PURPOSE ^

%

SYNOPSIS ^

function [x, m] = factor (n)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003