We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ismonic
1 parent 92c1eae commit a782adbCopy full SHA for a782adb
src/common.jl
@@ -356,7 +356,7 @@ isintegral(p::AbstractPolynomial) = all(isinteger, p)
356
357
Determine whether a polynomial is a monic polynomial, i.e., its leading coefficient is one.
358
"""
359
-ismonic(p::AbstractPolynomial) = isone(coeffs(p)[end])
+ismonic(p::AbstractPolynomial) = isone(p[end])
360
361
362
coeffs(::AbstractPolynomial)
0 commit comments