-
Notifications
You must be signed in to change notification settings - Fork 126
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
Missing characteristic(R::MPolyQuoRing)
method
#4239
Comments
On Thu, Oct 24, 2024 at 02:57:19AM -0700, Max Horn wrote:
Presumably it would return `characteristic(base_ring(R))` *unless* the ideal being factored out happens to be the the entire ring (then return 1). So that would require a GB computation (but hopefully that already is being cached?)
What is about Z[x,y]/<2>?
Or is this illegal by type?
… --
Reply to this email directly or view it on GitHub:
#4239
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Dunno. But even if we only support it for the case were the coeffs are from a field it would already be useful. |
One can construct the ring and do something with it:
Whether this works by design or by accident I don't know. |
Thanks to @joschmitt for addressing this over fields. I guess for integers we could handle it by computing a GB and checking if it contains any degree 0 entries; if so, compute their gcd to get the characteristic. Beyond that I guess it can get arbitrarily complicated and I'd be happy to throw the towel in the situations (as in, throw an error "if you want it, go ahead and implement it") |
If the input is |
Indeed. What I meant by "arbitrary complicated" is that then next we have to compute a quotient of But in principle it shouldn't hard to write a generic method -- how well it works in practice is a separate question :-) (perhaps it should be an |
In reply to @fingolfin my guess is that the computation of the G basis would likely dominate other costs (though one could probably construct counter-examples to my guess); so we likely do not need to worry about a quotient of |
open for grabs... no further discussion now, unless there is a use case |
Presumably it would return
characteristic(base_ring(R))
unless the ideal being factored out happens to be the the entire ring (then return 1). So that would require a GB computation (but hopefully that already is being cached?)The text was updated successfully, but these errors were encountered: