-
Notifications
You must be signed in to change notification settings - Fork 67
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
setindex!
for Fac
#2012
Comments
In Hecke:
Regarding the |
Ok, but zero as exponent should never be useful, except setting zero removes the factor all together. And why is redefining of exponents not allowed? |
Because someone thought it was a good idea when it was implemented. But I guess we could change it, if there is some interest. |
the way it was used orignally: redefining an exponent meant a logic flaw in the code... |
I understand this desire to prevent accidental changes to a |
I'm a bit confused by the behavior of
setindex!
forFac
. Currently I see no advantage overmulpow!
. I'd expect to be able to change the exponents of factors already included, especially considering the docstring:What's also a bit weird, is that with
setindex!
non-positive exponents can be set. Resulting in interesting outputs:The text was updated successfully, but these errors were encountered: