Allows non-default (P,a,b)
the output of a single application of a Collatz-esque function.
FailedSaneParameterCheck Thrown if either P or a are 0.
Returns a list of successive values obtained by iterating a Collatz-esque function, until either 1 is reached, or the total amount of iterations exceeds maxTotalStoppingTime, unless totalStoppingTime is False, which will terminate the hailstone at the "stopping time" value, i.e. the first value less than the initial value. While the sequence has the capability to determine that it has encountered a cycle, the cycle from "1" wont be attempted or reported as part of a cycle, regardless of default or custom parameterisation, as "1" is considered a "total stop".
Allows non-default (P,a,b); and other options.
A HailstoneSequence, a set of values that form the hailstone sequence.
FailedSaneParameterCheck Thrown if either P or a are 0.
Parameterised Collatz Inverse Function
Allows non-default (P,a,b)
the output of a single application of a Collatz-esque reverse function.
FailedSaneParameterCheck Thrown if either P or a are 0.
Returns the stopping time, the amount of iterations required to reach a value less than the initial value, or null if maxStoppingTime is exceeded. Alternatively, if totalStoppingTime is True, then it will instead count the amount of iterations to reach 1. If the sequence does not stop, but instead ends in a cycle, the result will be (Double.POSITIVE_INFINITY). If (P,a,b) are such that it is possible to get stuck on zero, the result will be the negative of what would otherwise be the "total stopping time" to reach 1, where 0 is considered a "total stop" that should not occur as it does form a cycle of length 1.
Allows non-default (P,a,b); and other options.
the stopping time, or, in a special case, infinity, null or a negative.
Returns a directed tree graph of the reverse function values up to a maximum nesting of maxOrbitDistance, with the initialValue as the root.
Allows non-default (P,a,b); and other options.
A TreeGraph, a tree with branches traversing the inverse function.
FailedSaneParameterCheck Thrown if either P or a are 0.
Generated using TypeDoc
Parameterised Collatz Function