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

problem with z^0 #28

Closed
my-little-repository opened this issue Sep 24, 2015 · 0 comments · Fixed by #29
Closed

problem with z^0 #28

my-little-repository opened this issue Sep 24, 2015 · 0 comments · Fixed by #29

Comments

@my-little-repository
Copy link

There seems to be a problem with elevating z to the zeroth exponent.

julia> let z = Poly([0.0, 1]),
           z1 = z^3 + z^0;
           length(z1), z1[end]
       end
(5,0.0)

So, z1 has length 5, which does not seems correct. I would have expected a length 3 underlying array, corresponding to a degree 3 polynomial. Here I am trying to access the coefficient of greatest degree for the polynomial. Is there a degree function? A related problem is that 0*z^5 is of length 6 and thus the length does not give the degree.

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 a pull request may close this issue.

1 participant