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 Sat 16-May-2009 00:04:49 by m2html © 2003