Skip to content

Commit 4f2a3af

Browse files
committed
resolve #27
I've never thought `degree` to be that useful of a function to have
1 parent 93eaa8c commit 4f2a3af

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Polynomial.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
module Polynomial
44
#todo: sparse polynomials?
55

6-
export Poly, polyval, polyint, polyder, poly, roots, degree
7-
export polydir #Deprecated
6+
export Poly, polyval, polyint, polyder, poly, roots
87

98
import Base: length, endof, getindex, setindex!, copy, zero, one, convert
109
import Base: show, print, *, /, //, -, +, ==, divrem, rem, eltype
@@ -37,7 +36,6 @@ eltype{T}(::Poly{T}) = T
3736

3837
length(p::Poly) = length(p.a)-p.nzfirst
3938
endof(p::Poly) = length(p)
40-
deg(p::Poly) = length(p) - 1
4139

4240
getindex(p::Poly, i) = p.a[i+p.nzfirst]
4341
setindex!(p::Poly, v, i) = (p.a[i+p.nzfirst] = v)
@@ -300,8 +298,6 @@ function polyint{T}(p::Poly{T}, k::Number=0)
300298
Poly(a2, p.var)
301299
end
302300

303-
@deprecate polydir polyder
304-
305301
function polyder{T}(p::Poly{T})
306302
n = length(p)
307303
if n > 0

0 commit comments

Comments
 (0)