Mercurial > octave-nkf
comparison scripts/specfun/factor.m @ 9167:1231b1762a9a
Simplify TeXinfo and eliminate use of @iftex in arith.txi
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 01 May 2009 11:37:36 -0700 |
parents | c1fff751b5a8 |
children | f261f936bf36 |
comparison
equal
deleted
inserted
replaced
9166:69088b7b139c | 9167:1231b1762a9a |
---|---|
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {@var{p} =} factor (@var{q}) | 20 ## @deftypefn {Function File} {@var{p} =} factor (@var{q}) |
21 ## @deftypefnx {Function File} {[@var{p}, @var{n}] =} factor (@var{q}) | 21 ## @deftypefnx {Function File} {[@var{p}, @var{n}] =} factor (@var{q}) |
22 ## | 22 ## |
23 ## Return prime factorization of @var{q}. That is @code{prod (@var{p}) | 23 ## Return prime factorization of @var{q}. That is, @code{prod (@var{p}) |
24 ## == @var{q}}. If @code{@var{q} == 1}, returns 1. | 24 ## == @var{q}} and every element of @var{p} is a prime number. If |
25 ## @code{@var{q} == 1}, returns 1. | |
25 ## | 26 ## |
26 ## With two output arguments, returns the unique primes @var{p} and | 27 ## With two output arguments, return the unique primes @var{p} and |
27 ## their multiplicities. That is @code{prod (@var{p} .^ @var{n}) == | 28 ## their multiplicities. That is, @code{prod (@var{p} .^ @var{n}) == |
28 ## @var{q}}. | 29 ## @var{q}}. |
29 ## @seealso{gcd, lcm} | 30 ## @seealso{gcd, lcm} |
30 ## @end deftypefn | 31 ## @end deftypefn |
31 | 32 |
32 ## Author: Paul Kienzle | 33 ## Author: Paul Kienzle |