Skip to content

Commit a782adb

Browse files
committed
Redefine ismonic
See #259 (comment)
1 parent 92c1eae commit a782adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ isintegral(p::AbstractPolynomial) = all(isinteger, p)
356356
357357
Determine whether a polynomial is a monic polynomial, i.e., its leading coefficient is one.
358358
"""
359-
ismonic(p::AbstractPolynomial) = isone(coeffs(p)[end])
359+
ismonic(p::AbstractPolynomial) = isone(p[end])
360360

361361
"""
362362
coeffs(::AbstractPolynomial)

0 commit comments

Comments
 (0)