@@ -252,7 +252,7 @@ Returns the maximal total degree of the monomials of `p`, i.e. `maximum(degree,
252
252
Returns the maximal degree of the monomials of `p` in the variable `v`, i.e. `maximum(degree.(terms(p), v))`.
253
253
254
254
### Examples
255
- Calling `maxdegree` on on ``4x^2y + xy + 2x`` should return 3, `maxdegree(4x^2y + xy + 2x, x)` should return 2 and `maxdegree(4x^2y + xy + 2x, y)` should return 1.
255
+ Calling `maxdegree` on ``4x^2y + xy + 2x`` should return 3, `maxdegree(4x^2y + xy + 2x, x)` should return 2 and `maxdegree(4x^2y + xy + 2x, y)` should return 1.
256
256
"""
257
257
function maxdegree (X:: AbstractVector{<:AbstractTermLike} , args:: Vararg{Any,N} ) where {N}
258
258
return mapreduce (t -> degree (t, args... ), max, X, init= 0 )
@@ -272,7 +272,7 @@ Returns the extremal total degrees of the monomials of `p`, i.e. `(mindegree(p),
272
272
Returns the extremal degrees of the monomials of `p` in the variable `v`, i.e. `(mindegree(p, v), maxdegree(p, v))`.
273
273
274
274
### Examples
275
- Calling `extdegree` on on ``4x^2y + xy + 2x`` should return `(1, 3)`, `extdegree(4x^2y + xy + 2x, x)` should return `(1, 2)` and `maxdegree(4x^2y + xy + 2x, y)` should return `(0, 1)`.
275
+ Calling `extdegree` on ``4x^2y + xy + 2x`` should return `(1, 3)`, `extdegree(4x^2y + xy + 2x, x)` should return `(1, 2)` and `maxdegree(4x^2y + xy + 2x, y)` should return `(0, 1)`.
276
276
"""
277
277
function extdegree (p:: Union{AbstractPolynomialLike, AbstractVector{<:AbstractTermLike}} , args... )
278
278
(mindegree (p, args... ), maxdegree (p, args... ))
0 commit comments