factor2.m
バージョン 1.0.0.0 (554 Bytes) 作成者:
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. |