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}
7676 function (:: Type{Poly} )(a:: AbstractVector{T} , var:: SymbolLike = :x ) where {T<: Number }
7777 # if a == [] we replace it with a = [0]
7878 if length (a) == 0
79- return new {T} (zeros (T,1 ), @compat Symbol (var))
79+ return new {T} (zeros (T,1 ),Symbol (var))
8080 else
8181 # determine the last nonzero element and truncate a accordingly
8282 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))
8484 end
8585 end
8686end
349349
350350
351351# are any values NaN
352- hasnan (p:: Poly ) = reduce (| , (@compat isnan .(p. a)))
352+ hasnan (p:: Poly ) = reduce (| , (isnan .(p. a)))
353353
354354function divrem (num:: Poly{T} , den:: Poly{S} ) where {T, S}
355355 if num. var != den. var
You can’t perform that action at this time.
0 commit comments