Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-38161: fix green function in projective_ds
<!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> fixes #36164 There were some errors in how the green function was calculated, especially in the error bound. These are corrected here. The potential error in the canonical height calculation was actually due to insufficient precision in the calculation rather than an error in the code. For example, the following returns the correct value ``` K.<v> = QuadraticField(5) P1.<x,y> = ProjectiveSpace(K, 1) f = DynamicalSystem([x^2, y^2]) P=P1(2+v,1) pr=10000 f.canonical_height(P,prec=pr,error_bound=0.001) ``` ### 📝 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. - [x] 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. documentation does not need to be updated. The existing tests were updated to reflect this change so accurately test this issue already. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #38161 Reported by: bhutz Reviewer(s): Travis Scrimshaw
- Loading branch information