Contains the results of computing the Tree Graph via Collatz.treeGraph(~). Contains the root node of a tree of TreeGraphNode's.

Constructors

Properties

Constructors

  • Create a new TreeGraph with the root node defined by the inputs.

    Parameters

    • nodeValue: bigint

      The value for which to find the tree graph node reversal.

    • maxOrbitDistance: number

      The maximum distance/orbit/branch length to travel.

    • P: bigint

      Modulus used to devide n, iff n is equivalent to (0 mod P).

    • a: bigint

      Factor by which to multiply n.

    • b: bigint

      Value to add to the scaled value of n.

    Returns TreeGraph

    A TreeGraph, a tree with branches traversing the inverse function.

    Throws

    FailedSaneParameterCheck Thrown if either P or a are 0.

Properties

The root node of the tree of TreeGraphNode's.

Generated using TypeDoc