Skip to content
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

fix error in _findpolymin #58

Merged
merged 10 commits into from
Feb 26, 2018
Merged

fix error in _findpolymin #58

merged 10 commits into from
Feb 26, 2018

Conversation

delgadom
Copy link
Member

@delgadom delgadom commented Feb 24, 2018

Function did not actually minimize the polynomial!

Our arguments do not have a 1st coefficient. This is a problem for line 47, as np.polyval assumes your coefficients include a 0th order term.

This causes misidentification of tstar. We should make sure this isn't also happening in prior work.

Function did not actually minimize the polynomial!

Our arguments do not have a 1st coefficient. This is a problem for line 47, as np.polyval assumes your coefficients include a 0th order term. 

This causes misidentification of tstar. We should make sure this isn't also happening in prior work.
@delgadom
Copy link
Member Author

this isn't quite ready. doing more testing. please don't merge!

@delgadom
Copy link
Member Author

this should now be good to go. the documentation has been clarified and the minimize package passes a wide range of tests.

@delgadom
Copy link
Member Author

For review, probably easiest to look at all the changes together up to the HISTORY modification, then to examine commits from then on as diffs, as the flake8 commit made small formatting changes throughout the repo (sorry - should have been a separate PR)

@delgadom delgadom self-assigned this Feb 25, 2018
@delgadom delgadom added the bug label Feb 25, 2018
@delgadom
Copy link
Member Author

Also - this is a pretty big deal - we should probably bump patch before merging

@delgadom delgadom merged commit dc49bd5 into master Feb 26, 2018
@delgadom delgadom deleted the findpolymin-1 branch May 23, 2018 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

findpolymin does not work for our coefficient format (1, 2, 3, 4) rather than (0, 1, 2, 3, 4)
2 participants