sage.rings: Update # needs#36152
Conversation
…only-tags src/sage/rings/*.{py,pyx}
| sage: L = Localization(R, (a**2 - 3, a)) # optional - sage.rings.finite_rings | ||
| sage: L.fraction_field() # optional - sage.rings.finite_rings | ||
| sage: # needs sage.rings.finite_rings | ||
| sage: R.<a> = GF(5)[] |
There was a problem hiding this comment.
Fixed in 59e556e - a tag is needed, but sage.libs.pari is a better choice.
|
|
||
| sage: T = PowerSeriesRing(GF(3),5,'t'); T # optional - sage.rings.finite_rings | ||
| sage: # needs sage.rings.finite_rings | ||
| sage: T = PowerSeriesRing(GF(3),5,'t'); T |
| sage: ZxNTL = PolynomialRing(ZZ, 'x', implementation='NTL'); TestSuite(ZxNTL).run(skip='_test_pickling'); ZxNTL | ||
| sage: ZxNTL = PolynomialRing(ZZ, 'x', implementation='NTL'); TestSuite(ZxNTL).run(skip='_test_pickling'); ZxNTL # needs sage.libs.ntl | ||
| Univariate Polynomial Ring in x over Integer Ring (using NTL) | ||
| sage: ZxFLINT = PolynomialRing(ZZ, 'x', implementation='FLINT'); TestSuite(ZxFLINT).run(); ZxFLINT |
There was a problem hiding this comment.
Maybe, could be splitted.
There was a problem hiding this comment.
I'd rather not touch it
There was a problem hiding this comment.
OK. I thought the tag is completely out of sight. But it is in TESTS block, and hence not visible anyway.
|
|
||
| sage: # needs numpy | ||
| sage: R.<x> = RDF[] | ||
| sage: RDF._factor_univariate_polynomial(x) |
| sage: f.roots(ring=CDF) # abs tol 2e-5 | ||
| sage: f = (x-1)^3 # needs numpy | ||
| sage: f.roots(ring=CDF) # abs tol 2e-5 # needs numpy | ||
| [(1.0000065719436413, 1), |
There was a problem hiding this comment.
Why numpy here and below?
There was a problem hiding this comment.
This goes through Polynomial.root, which tries to invoke numpy for low-precision float fields. (It could fall back to using PARI, but this would require a bit of refactoring)
…s to more precise sage.libs.pari; use more block tags
… # needs sage.rings.finite_rings
|
Documentation preview for this PR (built with commit 89e4c05; changes) is ready! 🎉 |
|
Thank you! |
sagemathgh-36152: `sage.rings`: Update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36152 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
sagemathgh-36152: `sage.rings`: Update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36152 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
sagemathgh-36152: `sage.rings`: Update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes sagemath#12345". --> - Part of: sagemath#29705 - Cherry-picked from: sagemath#35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36152 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
📝 Checklist
⌛ Dependencies