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 (2024). 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. |