Skip to content

Commit bd4a41e

Browse files
committed
Add docs to isintegerpoly & asintegerpoly
1 parent 59bd213 commit bd4a41e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/common.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,21 @@ See also: [`isreal`](@ref)
324324
"""
325325
Base.real(p::AbstractPolynomial) = as_(real, p)
326326

327+
"""
328+
isintegerpoly(p::AbstractPolynomial)
329+
330+
Determine whether a polynomial is an integer polynomial, i.e., having only integers as coefficients.
331+
332+
See also: [`asintegerpoly`](@ref)
333+
"""
327334
isintegerpoly(p::AbstractPolynomial) = is_(isinteger, p)
335+
"""
336+
asintegerpoly(p::AbstractPolynomial)
337+
338+
Construct an integer polynomial from the coefficients of `p`.
339+
340+
See also: [`isintegerpoly`](@ref)
341+
"""
328342
asintegerpoly(p::AbstractPolynomial) = as_(x -> convert(Integer, x), p)
329343

330344
"""

0 commit comments

Comments
 (0)