diff --git a/src/evaluate.jl b/src/evaluate.jl index 96ae4402..4450be6a 100644 --- a/src/evaluate.jl +++ b/src/evaluate.jl @@ -264,8 +264,7 @@ function evaluate(a::TaylorN{T}, vals::NTuple{N,S}) where return sum( sort!(suma, by=abs2) ) end -evaluate(a::TaylorN{T}, vals::Array{S,1}) where - {T<:Number, S<:NumberNotSeriesN} = evaluate(a, (vals...,)) +evaluate(a::TaylorN, vals) = evaluate(a, (vals...,)) evaluate(a::TaylorN, v, vals...) = evaluate(a, (v, vals...,)) diff --git a/test/intervals.jl b/test/intervals.jl index 2b715799..b5a0d751 100644 --- a/test/intervals.jl +++ b/test/intervals.jl @@ -37,5 +37,7 @@ end for ind in eachindex((p5(x,-b)).coeffs) @test all(((p5(x,-b)).coeffs[ind]).coeffs .⊆ (((x-b)^5).coeffs[ind]).coeffs) end + @test evaluate(p4(x,-b), IntervalBox(a,b)) == p4(a, b) + @test (p5(x,-b))(IntervalBox(a,b)) == p5(a, b) end