mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Create codespell.yml (#1698)
* fixup! Format Python code with psf/black push * Create codespell.yml * fixup! Format Python code with psf/black push
This commit is contained in:
@@ -22,7 +22,7 @@ def square_root_iterative(
|
||||
a: float, max_iter: int = 9999, tolerance: float = 0.00000000000001
|
||||
) -> float:
|
||||
"""
|
||||
Sqaure root is aproximated using Newtons method.
|
||||
Square root is aproximated using Newtons method.
|
||||
https://en.wikipedia.org/wiki/Newton%27s_method
|
||||
|
||||
>>> all(abs(square_root_iterative(i)-math.sqrt(i)) <= .00000000000001 for i in range(0, 500))
|
||||
|
||||
Reference in New Issue
Block a user