AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
823 stars 1.76k forks source link

find root, min, max of func: update doc string and refactor kwargs check #71

Closed rioj7 closed 1 year ago

rioj7 commented 1 year ago

doc strings of root_scalar and maximize_scalar contained errors

refactored the check of the kwargs if it contains parameter bracket or bounds. minimize_scalar accepts both depending on method, and method has default value depending on which parameter is present

Why is there a modsim.py in the root of the repo? The chapterX.py files can also work with the modsim module directory.

AllenDowney commented 1 year ago

Thank you -- this looks good. I need to run the notebooks as tests, but will merge as soon as I can.

AllenDowney commented 1 year ago

Thank you!