From 48619ed77871a6bcae23df460f426fc34698cd1e Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sun, 10 Jun 2018 13:46:39 +0200 Subject: [PATCH] Correct wording in tutorial regarding degree(), ldegree(). --- doc/tutorial/ginac.texi | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); -- 2.44.0