factorize(sfsmisc)
factorize()所属R语言包:sfsmisc
Prime Factorization of Integers
首要整数因子分解
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute the prime factorization(s) of integer(s) n.
计算的主要因式分解(S)的整数()n的。
用法----------Usage----------
factorize(n, verbose = FALSE)
参数----------Arguments----------
参数:n
vector of integers to factorize.
矢量整数的因式分解。
参数:verbose
logical indicating if some progress information should be printed.
逻辑指示是否应印有一些进展信息。
Details
详细信息----------Details----------
works via primes, currently in a cheap way, sub-optimal for large composite n.
工程通过primes,一种廉价的方式,目前最大型复合材料n。
值----------Value----------
A named list of the same length as n, each element a 2-column matrix with column "p" the prime factors and column~"m" their respective exponents (or multiplities), i.e., for a prime number n, the resulting matrix is cbind(p = n, m = 1).
一个名为list相同长度的n,每个元素都列"p"的主要因素和列2列的矩阵~"m"其各自的指数(或multiplities) ,即,为一个素数n,产生的矩阵是cbind(p = n, m = 1)。
(作者)----------Author(s)----------
Martin Maechler, Jan. 1996.
参见----------See Also----------
primes.
primes。
For factorization of moderately or really large numbers, see the gmp package, and its factorize().
中度或非常大的数字的分解,gmp包,它的factorize()。
实例----------Examples----------
factorize(47)
factorize(seq(101, 120, by=2))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|