We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6202ff commit 8b8155dCopy full SHA for 8b8155d
REQUIRE
@@ -1,2 +1,2 @@
1
julia 0.3
2
-Compat
+Compat 0.7.15
src/Polynomials.jl
@@ -65,11 +65,11 @@ immutable Poly{T<:Number}
65
function Poly(a::Vector{T}, var)
66
# if a == [] we replace it with a = [0]
67
if length(a) == 0
68
- return new(zeros(T,1), symbol(var))
+ return new(zeros(T,1), @compat Symbol(var))
69
else
70
# determine the last nonzero element and truncate a accordingly
71
a_last = max(1,findlast(a))
72
- new(a[1:a_last], symbol(var))
+ new(a[1:a_last], @compat Symbol(var))
73
end
74
75
@@ -101,8 +101,8 @@ function poly{T}(r::AbstractVector{T}, var=:x)
101
return Poly(reverse(c), var)
102
103
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))
+poly(A::Matrix, var::AbstractString) = poly(eigvals(A), @compat Symbol(var))
+poly(A::Matrix, var::Char) = poly(eig(A)[1], @compat Symbol(var))
106
107
108
include("show.jl") # display polynomials.
0 commit comments