Repository navigation
Conversation
| **fmpq** -- rational numbers | ||
| =============================================================================== | ||
|
|
||
| Harmonic numbers |
Collaborator
There was a problem hiding this comment.
Similar to previous PR there should be some docs for fmpq itself before jumping into special topics.
Contributor
Author
There was a problem hiding this comment.
Added a construction and arithmetic section before harmonic numbers in 71ce29c. It covers reduced fractions, integer and fraction-string construction, numerator/denominator access, and exact arithmetic.
Collaborator
|
I don't know who you are but you seem like a bot and I'm not interested in interacting with bots so closing. |
Contributor
Author
|
Hi Oscar, I’m a real person and I’ve reviewed both contributions. I’m happy to discuss the mathematics and address your feedback directly. I’d like to continue contributing to python-flint. Would you be open to continuing the conversation? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
fmpqpage currently provides only an API reference. Introduce exact rational numbers, canonical numerator and denominator, construction from integers and fraction strings, and basic arithmetic with worked values.Then define ordinary and generalized harmonic numbers, including their domains and the empty sum. Explain the exact recurrence recommended in the discussion of #265, with a worked prefix through
H_{4,2} = 205/144.Derive the Hurwitz-zeta identity for integer
m > 1by splitting its convergent defining series, cite DLMF 25.11.4, and explain the poles atm = 1. Distinguish real-ball evaluation witharb.zetafrom the exact rational recurrence.Related to #265; this documents existing arithmetic rather than adding a generalized harmonic-number API or caching.
Validation:
gr_ctx.factor. Neither is a clean strict build. The introduction adds no warning. Earlier baseline and render logs remain preserved.-b html -W --keep-going -E -a, Python 3.12.3, Sphinx 9.1.1 and Furo 2025.12.19. Autodoc imported the published python-flint 0.9.0 package; the native checkout was not rebuilt.