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
QuotientRing elements are not callable #11199
Comments
Initial patch |
comment:1
Attachment: trac_11199_QuotientRingElement_call.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:3
Evaluating an element of a quotient ring doesn't make mathematical sense in general, only if it makes sense to evaluate the lift: if you're taking a quotient of a group algebra or the p-adics, what does it mean to evaluate an element of it? I'm attaching a new patch which adds a comment about this to the docstring; is this enough warning? I'm happy with the original patch as far as it goes, and I'm almost ready to give it a positive review, but I'd like to hear opinions about the issue I raised. |
Reviewer: John Palmieri |
Attachment: trac_11199-delta.patch.gz for reference only; difference beteen initial patch and jhp patch |
apply this one |
comment:4
Attachment: trac_11199-jhp.patch.gz Even with the extra warning in the docstring, users could very easily be misled. I think it would be sensible to have a parameter 'check' with default True, and a
That way an unthinking user is not going to be caught out, while someone who |
It would be convenient if quotient ring elements would be callable like polynomials. This is currently not the case:
The attached patch implements this functionality by handing the argument through to the lift.
Arguably, it should check that the result does not depend on the presentation. Pro: catches errors; Con: potentially slow, ideal membership test necessary if arguments are polynomials.
Apply attachment: trac_11199-jhp.patch.
CC: @novoselt
Component: algebra
Author: Volker Braun
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/11199
The text was updated successfully, but these errors were encountered: