Package io.github.skenvy
-
Class Summary Class Description Collatz Provides the basic functionality to interact with the Collatz conjecture.Collatz.HailstoneSequence Contains the results of computing a hailstone sequence viaCollatz.hailstoneSequence(~)
.Collatz.TreeGraph Contains the results of computing the Tree Graph viaCollatz.treeGraph(~)
.Collatz.TreeGraphNode Nodes that form a "tree graph", structured as a tree, with their own node's value, as well as references to either possible child node, where a node can only ever have two children, as there are only ever two reverse values. -
Enum Summary Enum Description Collatz.SaneParameterErrMsg Error message constants, to be used as input to the FailedSaneParameterCheck.Collatz.SequenceState SequenceState for Cycle Control: Descriptive flags to indicate when some event occurs in the hailstone sequences or tree graph reversal, when set to verbose, or stopping time check. -
Exception Summary Exception Description Collatz.FailedSaneParameterCheck Thrown when eitherP
, the modulus, ora
, the multiplicand, are zero.