mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Update our pre-commit dependencies (#4273)
* .pre-commit-config.yaml: mypy directories that pass * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -5,7 +5,7 @@ def evaluate_poly(poly: Sequence[float], x: float) -> float:
|
||||
"""Evaluate a polynomial f(x) at specified point x and return the value.
|
||||
|
||||
Arguments:
|
||||
poly -- the coeffiecients of a polynomial as an iterable in order of
|
||||
poly -- the coefficients of a polynomial as an iterable in order of
|
||||
ascending degree
|
||||
x -- the point at which to evaluate the polynomial
|
||||
|
||||
@ -26,7 +26,7 @@ def horner(poly: Sequence[float], x: float) -> float:
|
||||
https://en.wikipedia.org/wiki/Horner's_method
|
||||
|
||||
Arguments:
|
||||
poly -- the coeffiecients of a polynomial as an iterable in order of
|
||||
poly -- the coefficients of a polynomial as an iterable in order of
|
||||
ascending degree
|
||||
x -- the point at which to evaluate the polynomial
|
||||
|
||||
|
Reference in New Issue
Block a user