Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
Fixed test failure for Julia versions `0.4` and `0.5`.

Closes #11.
Closes JuliaMath/Polynomials.jl#127.
  • Loading branch information
Arda Aytekin committed Aug 14, 2017
1 parent e06ff5f commit b16ec1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function residue(num::Poly, den::Poly)
return r, p, k
end
residue{T<:Number}(num::Vector{T}, den::Vector{T}) = residue(Poly(num), Poly(den))
residue(rfunc::RationalFunction) = residue(rfunc.num, rfunc.den)
residue(rfunc::RationalFunction) = residue(num(rfunc), den(rfunc))

### Conversely, given r, p, and k terms, return polynomial fraction
"""
Expand Down Expand Up @@ -553,7 +553,7 @@ julia> residue(r, p, k)
([1.0, 0.0, 1.0], [0.0, 1.0, -2.0, 1.0])
```
"""
function residue(r::Vector{<:Number}, p::Vector{<:Number}, k::Vector{<:Number})
function residue{T<:Number,S<:Number,U<:Number}(r::Vector{T}, p::Vector{S}, k::Vector{U})
den_poly = poly(p)
unique_p = unique(p)
dup_p_dict = Dict()
Expand Down

0 comments on commit b16ec1a

Please sign in to comment.