From: Richard Kreckel Date: Sun, 10 Jun 2018 11:46:39 +0000 (+0200) Subject: Correct wording in tutorial regarding degree(), ldegree(). X-Git-Tag: release_1-7-5~9 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=48619ed77871a6bcae23df460f426fc34698cd1e;ds=sidebyside Correct wording in tutorial regarding degree(), ldegree(). --- diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index 710e06f8..3ec34c35 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -5131,18 +5131,17 @@ a*(2*x*y+y^2+x^2) @cindex @code{ldegree()} @cindex @code{coeff()} -The degree and low degree of a polynomial can be obtained using the two -methods +The degree and low degree of a polynomial in expanded form can be obtained +using the two methods @example int ex::degree(const ex & s); int ex::ldegree(const ex & s); @end example -which also work reliably on non-expanded input polynomials (they even work -on rational functions, returning the asymptotic degree). By definition, the -degree of zero is zero. To extract a coefficient with a certain power from -an expanded polynomial you use +These functions even work on rational functions, returning the asymptotic +degree. By definition, the degree of zero is zero. To extract a coefficient +with a certain power from an expanded polynomial you use @example ex ex::coeff(const ex & s, int n);