-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lattes to curve function code commits for enhancement #38329 #38330
Conversation
A number of simple things to fix here:
Less simple: I think you should add at least one doc tests that checks the output is correct. Something like E, m = F.Lattes_to_curve() Finally, you cannot in general assume that u=1. The problem you are running into in the more general case is that the solution is not defined over QQ, not that there isn't a solution. |
I did a full functionality test and found a couple things. There are a couple more minor coding things too.
I would suggest renaming the variables to something no-one would typically use such as a = pts[0]['avar']
b = pts[0]['bvar']
u = pts[0]['uvar']
v = pts[0]['vvar']
t = pts[0]['tvar']
w = pts[0]['wvar'] Nothing else needs to change for this since you use
but you do need to fix another coercion problem from this
Add a number field example after you fix these.
This can be fixed by changing the code to
so you just need to allow QQbar through in your check against numberfields |
"move imports to top of file" lazy_import('sage.rings.qqbar', 'number_field_elements_from_algebraics') is on line 118 |
I having all the functionality working in this version. I still have a couple comments though.
|
Merge conflict |
@vbraun Could you point me to where to see the merge conflicts? |
Looks like you fixed the conflict in the last merge commit |
sagemath#38329 - **Fixing issue sagemath#38329** - **Adding Function with documentation to be reviewed for the above ticket** - **Lattes to curve function** <!-- ^ 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 sagemath#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 sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] 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 <!-- 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#38330 Reported by: Nathabolin Reviewer(s):
📝 Checklist
⌛ Dependencies