Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when copying #20

Merged
merged 2 commits into from
Apr 21, 2015
Merged

Bug when copying #20

merged 2 commits into from
Apr 21, 2015

Conversation

pjabardo
Copy link
Contributor

I was using the copy method but if the variable of the polynomial is different than :x, then
y = copy(x)
y != x
I also added a test for that.

Paulo

Originally, the copy method was implemented as
copy(p::Poly) = Poly(copy(p.a))
But if the polynomial being copied doesn't use :x as a variable the new poly will not preserve the variable.
Apparently the new copy function works. Added a test in test/tests.jl
Keno added a commit that referenced this pull request Apr 21, 2015
@Keno Keno merged commit 57f1458 into JuliaMath:master Apr 21, 2015
@Keno
Copy link
Collaborator

Keno commented Apr 21, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants