vtjnash / Polynomial.jl

Polynomial manipulations
Other
6 stars 10 forks source link

polynomial division #1

Closed vtjnash closed 10 years ago

vtjnash commented 11 years ago

implement polynomial long division /(num::Polynomial, den::Polynomial)

jwmerrill commented 10 years ago

See also https://gist.github.com/mathpup/8514578

vtjnash commented 10 years ago

Yes. Just need confirmation from @mathpup that he's willing to license it to here

jwmerrill commented 10 years ago

@mathpup has commented on the gist to give his permission to incorporate his code into the library. You also have my permission to release my contribution under the MIT license as part of this library.

vtjnash commented 10 years ago

implemented in f66f7bb

my-little-repository commented 10 years ago

Is there a chance that this improvement could be released with the standard distribution? I am using julia 0.3 and the version Polynomial 0.0.0 from the package manager does not seem to handle division.

julia> Poly([1.0,0,0])/Poly([1.0,2,1]) ERROR: no method /(Poly{Float64}, Poly{Float64})

julia> divrem(Poly([1,0,0]),Poly([1,2,1])) ERROR: no method div(Poly{Int64}, Poly{Int64}) in divrem at number.jl:20

Sincerely

mathpup commented 10 years ago

I will defer to vtjnash on this because I am not aware of how the packaging is done. Again, feel free to use the work I provided for division. I'm glad it is useful.

On Mon, Feb 24, 2014 at 6:41 AM, my-little-repository < notifications@github.com> wrote:

Is there a chance that this improvement could be released with the standard distribution? I am using julia 0.3 and the version Polynomial 0.0.0 from the package manager does not seem to handle division.

julia> Poly([1.0,0,0])/Poly([1.0,2,1]) ERROR: no method /(Poly{Float64}, Poly{Float64})

julia> divrem(Poly([1,0,0]),Poly([1,2,1])) ERROR: no method div(Poly{Int64}, Poly{Int64}) in divrem at number.jl:20

Sincerely

Reply to this email directly or view it on GitHubhttps://github.com/vtjnash/Polynomial.jl/issues/1#issuecomment-35882223 .

vtjnash commented 10 years ago

Mostly I just forgot to call Pkg.tag("Polynomial",:minor)

You can also do Pkg.checkout("Polynomial") to jump to the HEAD of master (although reminders like this are good too)