There was an error while loading. Please reload this page.
1 parent 42ec04a commit 00feaacCopy full SHA for 00feaac
1 file changed
src/expint.jl
@@ -5,8 +5,8 @@ struct SimplePoly{T}
5
coeffs::Vector{T}
6
end
7
8
-Base.:*(p::SimplePoly, c) = SimplePoly(p.coeffs * c)
9
-Base.:*(c, p::SimplePoly) = p * c
+Base.:*(p::SimplePoly, c::Number) = SimplePoly(p.coeffs * c)
+Base.:*(c::Number, p::SimplePoly) = p * c
10
11
function Base.:+(p::SimplePoly{S}, q::SimplePoly{T}) where {S, T}
12
n, m = length(p.coeffs), length(q.coeffs)
0 commit comments