Colourised Collatz Coral; derived from this original by Edmund Harriss
Functions related to the Collatz/Syracuse/3N+1 problem, implemented in Julia.
To install the latest from JuliaRegistries/General (also see JuliaHub);
julia> using Pkg; Pkg.add("Collatz")julia --project=. -e "using Pkg; Pkg.add(\"Collatz\")"Provides the basic functionality to interact with the Collatz conjecture.
The parameterisation uses the same (P,a,b) notation as Conway's generalisations.
Besides the function and reverse function, there is also functionality to retrieve the hailstone sequence, the "stopping time"/"total stopping time", or tree-graph.
The only restriction placed on parameters is that both P and a can't be 0.
git clone https://github.com/Skenvy/Collatz.git && cd Collatz/julia && make deps
make buildwill run bothmake test(the unit tests) andmake docs.make testprecompiles and runs the unit tests.make docsruns the strict doctesting makedocs.make docs_viewwillmake docsand start LiveServer on them.make replwill reinitialise the package and initiate the repl withusing Collatz
