8000 one more method in FHM-triangles by fchapoton · Pull Request #39020 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

one more method in FHM-triangles #39020

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

Merged
merged 3 commits into from
Dec 8, 2024
Merged

Conversation

fchapoton
Copy link
Contributor

just adding a small easy method

📝 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.

Copy link
github-actions bot commented Nov 22, 2024

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

@fchapoton
Copy link
Contributor Author

@tscrim : would you have time for this easy one, please ?

Comment on lines 685 to 687
x, y = self._vars
polyf = self._poly(y=y - 1)
return F_triangle(polyf, variables=(x, y))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
x, y = self._vars
polyf = self._poly(y=y - 1)
return F_triangle(polyf, variables=(x, y))
y = self._vars[-1]
polyf = self._poly(y=y - 1)
return F_triangle(polyf, variables=self._vars)

Can you also add a test when the variables are not x,y; say a,b? I am worried about the substitution line. It might need to be self._poly(**{str(y): y}).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right.. I am afraid that the whole file is not robust with respect to the use of other variable names. There are many substitutions where I use x=.. and / or y=....

Should I fix them all here ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you. At least for this method we should do it here. Probably best to do it en masse here though...

Copy link
Collaborator
@tscrim tscrim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Dec 6, 2024
sagemathgh-39020: one more method in FHM-triangles
    
just adding a small easy method

### 📝 Checklist

- [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.
    
URL: sagemath#39020
Reported by: Frédéric Chapoton
Reviewer(s): Frédéric Chapoton, Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this pull request Dec 8, 2024
8000
sagemathgh-39020: one more method in FHM-triangles
    
just adding a small easy method

### 📝 Checklist

- [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.
    
URL: sagemath#39020
Reported by: Frédéric Chapoton
Reviewer(s): Frédéric Chapoton, Travis Scrimshaw
@vbraun vbraun merged commit cbd9dca into sagemath:develop Dec 8, 2024
22 of 24 checks passed
@fchapoton fchapoton deleted the fhm_parabolic branch December 9, 2024 06:16
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
0