• Creates a binomial tree with the given structural elements

    Parameters

    • rank: number

      the rank of the binomial tree

    • val: any

      the value of the root of the tree

    • Optionalchildren: List<BinomialTree<any>> = LA.nil

      the children of the tree

    Returns BinomialTree<any>

    a new binomial tree