factor2.m
版本 1.0.0.0 (554 字节) 作者:
David Terr
factor2(n) returns the prime factorization of n as a k by 2 matrix.
2.8K 次下载
更新时间
2004/5/26
无许可证
Given a nonnegative integer n, factor2(n) returns the prime factorization of n as a 2 by k matrix, with the k distinct prime factors in the left column and exponents in the right column.
引用格式
David Terr (2025). factor2.m (https://www.mathworks.com/matlabcentral/fileexchange/4966-factor2-m), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R12
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Discrete Math 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 | I modified this program so that it sorts the prime factors by columns instead of by rows, allowing for more convenience, especially with large numbers. I also modified it so it now works with negative numbers as well. |