Update arithmetic_analysis/newton_raphson.py

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Rohan Anand 2023-07-16 20:42:35 +05:30 committed by GitHub
parent daf594dd50
commit 8d6f837303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
# Implementing Newton Raphson method in Python # Implementing Newton Raphson method in Python
# Author: Syed Haseeb Shah (github.com/QuantumNovice) # Author: Syed Haseeb Shah (github.com/QuantumNovice)
# The Newton-Raphson method (also known as Newton's method) is a way to # The Newton-Raphson method (also known as Newton's method) is a way to
# quickly find a good approximation for the root of a real-valued function # quickly find a good approximation for the root of a real-valued function.
# https://en.wikipedia.org/wiki/Newton%27s_method
from __future__ import annotations from __future__ import annotations
from sympy import diff, symbols, sympify from sympy import diff, symbols, sympify