plumial.core.D._D.c
- _D.c()[source]
Calculate the ceiling of log_h(g).
This method computes ceil(log_h(g)) where log_h(g) is the logarithm of g with base h. The result represents an important mathematical bound related to the d-polynomial structure.
- Return type:
Union[Expr,int,float,Rational]- Returns:
Ceiling value, either symbolic or evaluated based on the basis
- Mathematical Formula:
c = ceil(log_h(g)) = ceil(log(g) / log(h))
Examples
>>> d = D(2, 5) >>> d.c() # Symbolic form >>> collatz_d = D(2, 5).encode(B.Collatz) >>> collatz_d.c() # Numerical evaluation for g=3, h=2