plumial.core.P._P.k
- _P.k()[source]
Calculate the k polynomial.
The k polynomial is derived from the gh transformation of the uv polynomial.
- Return type:
Union[Expr,int,float]- Returns:
k polynomial or its evaluation
Examples
>>> p = P(133) >>> p.k() # Symbolic form # Returns symbolic k polynomial >>> collatz_p = P(133).encode(B.Collatz) >>> collatz_p.k() # Uses basis automatically # Returns numerical value using Collatz basis