mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 02:18:39 +00:00
Update newton_raphson.py
This commit is contained in:
parent
cc3d6a62fc
commit
aeb42b1e12
@ -33,6 +33,9 @@ def newton_raphson(
|
||||
...
|
||||
ValueError: precision must be greater than zero
|
||||
"""
|
||||
if precision <= 0:
|
||||
raise ValueError("precision must be greater than zero")
|
||||
|
||||
x = start_point
|
||||
symbol = symbols("x")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user