You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-39555: Added option to return explicit polynomial in .in_subalgebra
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes#12345". -->
Fixes#39225.
Previously the function in_subalgebra in
src/sage/rins/polynomial/multi_polynomial_libsingular.pyx returned True
or False, depending on whether the polynomial was present in the
provided subalgebra. When the parameter 'algorithm' was set to
'groebner' it would do this by generating a polynomial, but this
polynomial would not be made available to the user.
This function was enhanced by adding a key-word only argument
'certificate' to the function which defaults to False. When the value
provided for this argument evaluates to False the function behaves as
before. When the value provided evaluates to True and the Groebner
algorithm is used the function returns the polynomial generated by the
algorithm when it would have otherwise returned True, and returns None
when it would have otherwise returned False.
Additionally, if the value provided for the 'certificate' argument is a
string which evaluates to True then that string will be used to name the
variables in the generated polynomial.
The existing example for this function has been modified to test this
new functionality.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [X] The title is concise and informative.
- [X] The description explains in detail what this PR is about.
- [X] I have linked a relevant issue or discussion.
- [X] I have created tests covering the changes.
- [X] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #39555
Reported by: Caleb Van't Land
Reviewer(s): Caleb Van't Land, Travis Scrimshaw
0 commit comments