Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-35823:
sage.arith.misc
: fixes error in binomial for p-ad…
…ic numbers with negative valuation <!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes sagemath#12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- 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". --> <!-- If your change requires a documentation PR, please link it appropriately. --> As discussed in sagemath#35811 : in case 2 of `binomial` the fix replaces `except TypeError` by `except (TypeError, ValueError)`. Furthermore, I added examples and tests for binomials of p-adic numbers. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [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 accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> Fixes sagemath#35811. <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#35823 Reported by: Heiko Knospe Reviewer(s): Travis Scrimshaw
- Loading branch information