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
sagemathgh-41012: Fix qfsolve
see the newly added doctest, they previously fail.
this is a combination of two bugs
* pari qfsolve function may return a matrix, but the original code does
not handle this case
* after finding a solution x, it's possible that there's no vector e
such that B(x, e) != 0. In this case for any vector v, self(v) =
self(v+λx), therefore it suffice to find solution in some subspace
complement to x, if there exists a solution then there must exist one in
that subspace by adding appropriate multiple of x.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
URL: sagemath#41012
Reported by: user202729
Reviewer(s): grnx, user202729
0 commit comments