Skip to content

Commit bcac36e

Browse files
authored
Fixed two typos in polynomial.jl (on on -> on) (#221)
* Fixed a typo ('vector' instead of 'vetor') * Fixed typo * Fixed typo
1 parent 6021d82 commit bcac36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/polynomial.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Returns the maximal total degree of the monomials of `p`, i.e. `maximum(degree,
252252
Returns the maximal degree of the monomials of `p` in the variable `v`, i.e. `maximum(degree.(terms(p), v))`.
253253
254254
### 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.
256256
"""
257257
function maxdegree(X::AbstractVector{<:AbstractTermLike}, args::Vararg{Any,N}) where {N}
258258
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),
272272
Returns the extremal degrees of the monomials of `p` in the variable `v`, i.e. `(mindegree(p, v), maxdegree(p, v))`.
273273
274274
### 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)`.
276276
"""
277277
function extdegree(p::Union{AbstractPolynomialLike, AbstractVector{<:AbstractTermLike}}, args...)
278278
(mindegree(p, args...), maxdegree(p, args...))

0 commit comments

Comments
 (0)