Skip to content

Add helper function to extract coefficients of powers of n #22

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 12 commits into from
Mar 13, 2025

Conversation

turnip314
Copy link
Collaborator

@behackl @smelczer Helper function that separates an ACSV output (of any format) into a dictionary which maps the degree of the power of n term to its coefficients (see doctest for example). This way if users only care about the last part (with the expansion terms) they can just pass the last element of the tuple.

@behackl behackl changed the base branch from non-smooth to main March 12, 2025 13:59
Copy link
Collaborator

@behackl behackl left a comment

Choose a reason for hiding this comment

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

I've pushed some harmless review commits and left two questions -- take a look and let me know what you think! Good work!

@behackl
Copy link
Collaborator

behackl commented Mar 13, 2025

Thanks for the updates here! I'm in the middle of some finalizing (mostly cosmetic) changes, will finish this first thing tomorrow morning.

Copy link
Collaborator

@behackl behackl left a comment

Choose a reason for hiding this comment

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

Well, the changes got increasingly non-cosmetic towards the end, but I'm now very happy with this. Check the examples in the docstrings!

I'll approve this PR now, could you perhaps cross-check my changes @turnip314?

@behackl behackl merged commit 07fe509 into main Mar 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants