added type hints and doctests to arithmetic_analysis/newton_method.py… · UnixJunkie/all-algorithms-python@473072b · GitHub
Skip to content

Commit 473072b

Browse files
spamegg1cclauss
andauthored
added type hints and doctests to arithmetic_analysis/newton_method.py (TheAlgorithms#2259)
* added type hints and doctests to arithmetic_analysis/newton_method.py Continuing TheAlgorithms#2128 Also changed some variable names, made them more descriptive. * Added type hints and doctests to arithmetic_analysis/newton_method.py added a type alias for Callable[[float], float] and cleaned up the exception handling * added type hints and doctests to arithmetic_analysis/newton_method.py improved exception handling * Update newton_method.py Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 9cda130 commit 473072b

1 file changed

Lines changed: 36 additions & 11 deletions

File tree

arithmetic_analysis/newton_method.py

Lines changed: 36 additions & 11 deletions

0 commit comments

Comments
 (0)