mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
actions/checkout@v2 (#1643)
* actions/checkout@v2 https://github.com/actions/checkout/releases * fixup! Format Python code with psf/black push
This commit is contained in:

committed by
John Law

parent
1b3985837f
commit
34c808b375
@ -8,7 +8,7 @@ from math import * # noqa: F401, F403
|
||||
from sympy import diff
|
||||
|
||||
|
||||
def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float:
|
||||
def newton_raphson(func: str, a: int, precision: int = 10 ** -10) -> float:
|
||||
""" Finds root from the point 'a' onwards by Newton-Raphson method
|
||||
>>> newton_raphson("sin(x)", 2)
|
||||
3.1415926536808043
|
||||
|
Reference in New Issue
Block a user