Skip to content

Commit 8b8155d

Browse files
for v0.5: replace symbol with Symbol
1 parent a6202ff commit 8b8155d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
julia 0.3
2-
Compat
2+
Compat 0.7.15

src/Polynomials.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ immutable Poly{T<:Number}
6565
function Poly(a::Vector{T}, var)
6666
# if a == [] we replace it with a = [0]
6767
if length(a) == 0
68-
return new(zeros(T,1), symbol(var))
68+
return new(zeros(T,1), @compat Symbol(var))
6969
else
7070
# determine the last nonzero element and truncate a accordingly
7171
a_last = max(1,findlast(a))
72-
new(a[1:a_last], symbol(var))
72+
new(a[1:a_last], @compat Symbol(var))
7373
end
7474
end
7575
end
@@ -101,8 +101,8 @@ function poly{T}(r::AbstractVector{T}, var=:x)
101101
return Poly(reverse(c), var)
102102
end
103103
poly(A::Matrix, var=:x) = poly(eigvals(A), var)
104-
poly(A::Matrix, var::AbstractString) = poly(eigvals(A), symbol(var))
105-
poly(A::Matrix, var::Char) = poly(eig(A)[1], symbol(var))
104+
poly(A::Matrix, var::AbstractString) = poly(eigvals(A), @compat Symbol(var))
105+
poly(A::Matrix, var::Char) = poly(eig(A)[1], @compat Symbol(var))
106106

107107

108108
include("show.jl") # display polynomials.

0 commit comments

Comments
 (0)