Skip to content

Conversation

user202729
Copy link
Contributor

@user202729 user202729 commented Jun 27, 2025

I think it's not too easy to find .valuation(2) i.e. .count_trailing_bits() as is.

e.g. online search result for "SageMath integer valuation" gives that page as one of the top results. Or maybe https://doc.sagemath.org/html/en/reference/valuations/sage/rings/valuation/valuation.html

📝 Checklist

  • 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

Copy link

Documentation preview for this PR (built with commit e8ca87b; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@r-mb
Copy link
Contributor

r-mb commented Jul 10, 2025

Looks good to me, it seems to me the CI failures are unrelated with this simple change.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 14, 2025
sagemathgh-40315: Document that valuation can be called
    
I think it's not too easy to find `.valuation(2)` i.e.
`.count_trailing_bits()` as is.

e.g. online search result for "SageMath integer valuation" gives that
page as one of the top results. Or maybe https://doc.sagemath.org/html/e
n/reference/valuations/sage/rings/valuation/valuation.html

### 📝 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.
- [ ] 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,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40315
Reported by: user202729
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 18, 2025
sagemathgh-40315: Document that valuation can be called
    
I think it's not too easy to find `.valuation(2)` i.e.
`.count_trailing_bits()` as is.

e.g. online search result for "SageMath integer valuation" gives that
page as one of the top results. Or maybe https://doc.sagemath.org/html/e
n/reference/valuations/sage/rings/valuation/valuation.html

### 📝 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.
- [ ] 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,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40315
Reported by: user202729
Reviewer(s):
@vbraun vbraun merged commit 72dbbfd into sagemath:develop Jul 25, 2025
21 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants