-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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!
Thanks for the updates here! I'm in the middle of some finalizing (mostly cosmetic) changes, will finish this first thing tomorrow morning. |
There was a problem hiding this 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 @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.