What is the quickest way to extract the constant term from a Laurent polynomial in two variables? For example $x+1 +x^{-2}y+x/y$ has constant term $+1$.
1 Answer
$\begingroup$
$\endgroup$
2
SeriesCoefficient[x + 1 + x^(-1) y + x/y, {x, 0, 0}, {y, 0, 0}]
1
-
$\begingroup$ Right, is this the quickest way? assume I will repeat this operation many many times $\endgroup$– jj_pCommented Mar 13, 2019 at 13:40
-
1$\begingroup$ @jj_p: at worst, it should be not too inefficient. You don't mention how complicated your Laurent series can get. $\endgroup$ Commented Mar 13, 2019 at 13:47