Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Collatz: Go 🔷🐀🔷

Banner Image, Collatz Coral

Colourised Collatz Coral; derived from this original by Edmund Harriss


Functions related to the Collatz/Syracuse/3N+1 problem, implemented in Go.

Getting Started

To install the latest from pkg.go.dev;

go get -u github.com/Skenvy/Collatz/go

Usage

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.

Developing

Install go. The latest version should be fine, because you can download other versions once you have installed whatever the latest is. See the list of releases that can be downloaded here. See the release history.

The first time setup

git clone https://github.com/Skenvy/Collatz.git && cd Collatz/go && make godoc

Iterative development

  • make docs_local to start a local server to browse the files taken from, and generated by, godoc.