Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jackmoody11/collatz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collatz

This is a Matlab script to visualize the Collatz conjecture. To use, save the file and enter collatz(n), replacing n to see a graph of how many steps it takes to get back to 1 for each number from 1 to n.

Here is an example of using the collatz() function in Octave: collatz(1000) result

Octave is a nice online platform that provides much of the functionality that Matlab does and can be found at https://octave-online.net/.

About

Matlab script to visualize collatz conjecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages