Simple for Loop to check the Collatz Conjuncture.
Takes a number x. If it’s even, divide x by 2. If it’s odd, multiply x by 3 and add 1 to the product. Repeat until it reaches 1 do that the loop doesnt las forever
인용 양식
Ali Talal Mohammad Budebs (2024). Simple Collatz conjecture (https://www.mathworks.com/matlabcentral/fileexchange/96952-simple-collatz-conjecture), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0 |