File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ struct Poly{T}
76
76
function (:: Type{Poly} )(a:: AbstractVector{T} , var:: SymbolLike = :x ) where {T<: Number }
77
77
# if a == [] we replace it with a = [0]
78
78
if length (a) == 0
79
- return new {T} (zeros (T,1 ), @compat Symbol (var))
79
+ return new {T} (zeros (T,1 ),Symbol (var))
80
80
else
81
81
# determine the last nonzero element and truncate a accordingly
82
82
a_last = max (1 ,findlast (x-> x!= zero (T), a))
83
- new {T} (a[1 : a_last], @compat Symbol (var))
83
+ new {T} (a[1 : a_last], Symbol (var))
84
84
end
85
85
end
86
86
end
349
349
350
350
351
351
# are any values NaN
352
- hasnan (p:: Poly ) = reduce (| , (@compat isnan .(p. a)))
352
+ hasnan (p:: Poly ) = reduce (| , (isnan .(p. a)))
353
353
354
354
function divrem (num:: Poly{T} , den:: Poly{S} ) where {T, S}
355
355
if num. var != den. var
You can’t perform that action at this time.
0 commit comments