Collatz sequence
Version 1.0.0 (2,33 ko) par
Dhruv Shah
In the collatz sequence, if the maximum of a certain subset is taken (e.g. for every 10 terms), those maxima too show a similar pattern
The code takes three inputs:
Number of data points to plot, the step, and a bin width.
The step enables us to make the plot look more or less crowded; higher step size does mean higher runtime of code.
Bin width is present essentially to highlight the highest points in the output plot
Citation pour cette source
Dhruv Shah (2026). Collatz sequence (https://fr.mathworks.com/matlabcentral/fileexchange/78691-collatz-sequence), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2020a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0 |
