[GiNaC-list] coeff() method
Alexei Sheplyakov
alexei.sheplyakov at gmail.com
Sun Sep 19 19:28:55 CEST 2010
Hi again,
> Where can I find the specification for coeff()?
See the paragraph "Degree and coefficients" in the section "Polynomial
arithmetic".
Basically, coeff extracts a coefficient with a certain power from an expanded
polynomial (that is, in e.coeff(x, n) e should be expanded w.r.t. x).
Thus the first
argument should be a symbol. Simetimes one can get sensible result even
if the argument is not a symbol (see the examples in the manual). But
in this case
the only guarantee is that e.coeff(e, 1) is 1.
Hope this helps,
Alexei
More information about the GiNaC-list
mailing list