p = characteristicPolynomial P
p = characteristicPolynomial(P, VariableName => symbol)
The characteristic polynomial of a ranked poset is the generating function with variable $q$ such that the coefficient of $q^r$ is the sum overall vertices of rank $r$ of the Moebius function of $v$.
The characteristic polynomial of the chain of $n$ is $q^{n-1}(q-1)$.
|
|
And the characteristic polynomial of the booleanLattice of $n$ is $(q-1)^n$.
|
The object characteristicPolynomial is a method function with options.