Skip to content

Commit f5faf58

Browse files
committed
Add vector version of polyint/der
1 parent 1db97d8 commit f5faf58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Polynomials.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ function polyder{T}(p::Poly{T})
279279
end
280280
end
281281

282+
polyder{T}(a::Array{Poly{T}}) = [polyder(p) for p in a]
283+
polyint{T}(a::Array{Poly{T}}) = [polyint(p) for p in a]
284+
282285
# create a Poly object from its roots
283286
function poly{T}(r::AbstractVector{T}, var=:x)
284287
n = length(r)

0 commit comments

Comments
 (0)