From 284e532b7f8b35eef2a9676cf2358008d2f57d1f Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 19:12:02 +0545 Subject: [PATCH 01/19] Bug Fixed --- arithmetic_analysis/newton_raphson_method.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 646b352a923c..937e0a49292b 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -4,31 +4,35 @@ # quickly find a good approximation for the root of a real-valued function from sympy import diff from decimal import Decimal +from math import * + + +PRECISION = 10 ** -10 def NewtonRaphson(func, a): """ Finds root from the point 'a' onwards by Newton-Raphson method """ + x = a while True: - c = Decimal(a) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) - a = c + x = Decimal(x) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) # This number dictates the accuracy of the answer - if abs(eval(func)) < 10 ** -15: - return c + if abs(eval(func)) < PRECISION: + return x # Let's Execute if __name__ == "__main__": # Find root of trigonometric function # Find value of pi - print("sin(x) = 0", NewtonRaphson("sin(x)", 2)) + print("The root of sin(x) = 0 is ", NewtonRaphson("sin(x)", 2)) # Find root of polynomial - print("x**2 - 5*x +2 = 0", NewtonRaphson("x**2 - 5*x +2", 0.4)) + print("The root of x**2 - 5*x +2 = 0 is ", NewtonRaphson("x**2 - 5*x +2", 0.4)) # Find Square Root of 5 - print("x**2 - 5 = 0", NewtonRaphson("x**2 - 5", 0.1)) + print("The root of log(x) - 1 = 0 is ", NewtonRaphson("log(x)- 1", 2)) # Exponential Roots - print("exp(x) - 1 = 0", NewtonRaphson("exp(x) - 1", 0)) + print("The root of exp(x) - 1 = 0 is", NewtonRaphson("exp(x) - 1", 0)) From 7abd6563fe7b314c9cc287f036c2dc53475f454e Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 19:49:04 +0545 Subject: [PATCH 02/19] Fixed newton_raphson_method.py --- arithmetic_analysis/newton_raphson_method.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 937e0a49292b..04c592bc342f 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -4,10 +4,10 @@ # quickly find a good approximation for the root of a real-valued function from sympy import diff from decimal import Decimal -from math import * +from math import sin,cos,tan,log,exp -PRECISION = 10 ** -10 +precision = 10 ** -10 def NewtonRaphson(func, a): @@ -18,7 +18,7 @@ def NewtonRaphson(func, a): x = Decimal(x) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) # This number dictates the accuracy of the answer - if abs(eval(func)) < PRECISION: + if abs(eval(func)) < precision: return x From 54163843a4736a9a51a8c611df0cd9f33f4fe4a2 Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 19:57:52 +0545 Subject: [PATCH 03/19] Fixed newton_raphson_method.py 2 --- arithmetic_analysis/newton_raphson_method.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 04c592bc342f..d49db5fee1aa 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -7,7 +7,7 @@ from math import sin,cos,tan,log,exp -precision = 10 ** -10 +PRECISION = 10 ** -10 def NewtonRaphson(func, a): @@ -18,7 +18,7 @@ def NewtonRaphson(func, a): x = Decimal(x) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) # This number dictates the accuracy of the answer - if abs(eval(func)) < precision: + if abs(eval(func)) < PRECISION: return x From 05619ca71f2190153857946ab02aef5b755e12f4 Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 20:05:52 +0545 Subject: [PATCH 04/19] Fixed newton_raphson_method.py 3 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index d49db5fee1aa..d8edc0072c99 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -4,7 +4,7 @@ # quickly find a good approximation for the root of a real-valued function from sympy import diff from decimal import Decimal -from math import sin,cos,tan,log,exp +from math import sin,log,exp PRECISION = 10 ** -10 From 43aefed70a1fcf76f210fccd22dfc60ba4b08ea2 Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 20:17:24 +0545 Subject: [PATCH 05/19] Fixed newton_raphson_method.py 4 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index d8edc0072c99..5ed130a448fc 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -5,7 +5,7 @@ from sympy import diff from decimal import Decimal from math import sin,log,exp - +# noqa, flake8 issue PRECISION = 10 ** -10 From 6a407548ffa135a76a8e18dc776b5c17b076ad55 Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 20:22:03 +0545 Subject: [PATCH 06/19] Fixed newton_raphson_method.py 5 --- arithmetic_analysis/newton_raphson_method.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 5ed130a448fc..9e0bac793087 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -5,7 +5,9 @@ from sympy import diff from decimal import Decimal from math import sin,log,exp -# noqa, flake8 issue + + +a,b,c = sin(10),log(10),exp(10) PRECISION = 10 ** -10 From 32be95a5696ed7e9e9175d0ffcd9547e4a76e7ee Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Sat, 14 Dec 2019 20:32:09 +0545 Subject: [PATCH 07/19] Fixed newton_raphson_method.py 6 --- arithmetic_analysis/newton_raphson_method.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 9e0bac793087..c9074611c7a6 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -4,16 +4,24 @@ # quickly find a good approximation for the root of a real-valued function from sympy import diff from decimal import Decimal -from math import sin,log,exp +from math import * -a,b,c = sin(10),log(10),exp(10) - PRECISION = 10 ** -10 def NewtonRaphson(func, a): - """ Finds root from the point 'a' onwards by Newton-Raphson method """ + """ Finds root from the point 'a' onwards by Newton-Raphson method + >>> NewtonRaphson("sin(x)", 2)) + 3.141592653680804119362982272 + >>> NewtonRaphson("x**2 - 5*x +2", 0.4)) + 0.4384471871911695062638833812 + >>> NewtonRaphson("x**2 - 5", 0.1)) + 2.236067977499789696465261251 + >>> NewtonRaphson("log(x)- 1", 2)) + 2.718281828458937968804105873 + """ + x = a while True: @@ -35,6 +43,6 @@ def NewtonRaphson(func, a): # Find Square Root of 5 print("The root of log(x) - 1 = 0 is ", NewtonRaphson("log(x)- 1", 2)) - + # Exponential Roots print("The root of exp(x) - 1 = 0 is", NewtonRaphson("exp(x) - 1", 0)) From 788626db24f27b6786cdf1919a333e3f0a6225b8 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 06:52:12 +0100 Subject: [PATCH 08/19] Update newton_raphson_method.py --- arithmetic_analysis/newton_raphson_method.py | 26 +++++++------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index c9074611c7a6..fd707fe5070d 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -2,15 +2,13 @@ # Author: Syed Haseeb Shah (github.com/QuantumNovice) # 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 -from sympy import diff -from decimal import Decimal -from math import * - -PRECISION = 10 ** -10 +from decimal import Decimal +from math import * # noqa: F821 +from sympy import diff -def NewtonRaphson(func, a): +def NewtonRaphson(func: str, a: int, precision=int: 10 ** -10) -> float: """ Finds root from the point 'a' onwards by Newton-Raphson method >>> NewtonRaphson("sin(x)", 2)) 3.141592653680804119362982272 @@ -21,14 +19,11 @@ def NewtonRaphson(func, a): >>> NewtonRaphson("log(x)- 1", 2)) 2.718281828458937968804105873 """ - x = a while True: - x = Decimal(x) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) - # This number dictates the accuracy of the answer - if abs(eval(func)) < PRECISION: + if abs(eval(func)) < precision: return x @@ -36,13 +31,10 @@ def NewtonRaphson(func, a): if __name__ == "__main__": # Find root of trigonometric function # Find value of pi - print("The root of sin(x) = 0 is ", NewtonRaphson("sin(x)", 2)) - + print(f"The root of sin(x) = 0 is {NewtonRaphson('sin(x)', 2)}") # Find root of polynomial - print("The root of x**2 - 5*x +2 = 0 is ", NewtonRaphson("x**2 - 5*x +2", 0.4)) - + print(f"The root of x**2 - 5*x + 2 = 0 is {NewtonRaphson('x**2 - 5*x + 2', 0.4)}") # Find Square Root of 5 - print("The root of log(x) - 1 = 0 is ", NewtonRaphson("log(x)- 1", 2)) - + print(f"The root of log(x) - 1 = 0 is {NewtonRaphson('log(x) - 1', 2)}") # Exponential Roots - print("The root of exp(x) - 1 = 0 is", NewtonRaphson("exp(x) - 1", 0)) + print(f"The root of exp(x) - 1 = 0 is {NewtonRaphson('exp(x) - 1', 0)}") From fe26a2bf27766a1082104d0090299e539f611f89 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 06:56:05 +0100 Subject: [PATCH 09/19] Update newton_raphson_method.py --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index fd707fe5070d..acf19b684b8e 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -8,7 +8,7 @@ from sympy import diff -def NewtonRaphson(func: str, a: int, precision=int: 10 ** -10) -> float: +def NewtonRaphson(func: str, a: int, precision=10 ** -10) -> float: """ Finds root from the point 'a' onwards by Newton-Raphson method >>> NewtonRaphson("sin(x)", 2)) 3.141592653680804119362982272 From a48b3b0a816bdee05cf998c0b6f56d5f7f8b6641 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 06:59:43 +0100 Subject: [PATCH 10/19] # noqa: F401, F403 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index acf19b684b8e..d1656a080b62 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -4,7 +4,7 @@ # quickly find a good approximation for the root of a real-valued function from decimal import Decimal -from math import * # noqa: F821 +from math import * # noqa: F401, F403 from sympy import diff From a428b457e8c39b2e489b5c12933a89d71ceb9464 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 07:05:42 +0100 Subject: [PATCH 11/19] newton_raphson --- arithmetic_analysis/newton_raphson_method.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index d1656a080b62..f2d275cc5614 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -8,15 +8,15 @@ from sympy import diff -def NewtonRaphson(func: str, a: int, precision=10 ** -10) -> float: +def newton_raphson(func: str, a: int, precisionm int=10 ** -10) -> float: """ Finds root from the point 'a' onwards by Newton-Raphson method - >>> NewtonRaphson("sin(x)", 2)) + >>> newton_raphson("sin(x)", 2) 3.141592653680804119362982272 - >>> NewtonRaphson("x**2 - 5*x +2", 0.4)) + >>> newton_raphson("x**2 - 5*x +2", 0.4) 0.4384471871911695062638833812 - >>> NewtonRaphson("x**2 - 5", 0.1)) + >>> newton_raphson("x**2 - 5", 0.1) 2.236067977499789696465261251 - >>> NewtonRaphson("log(x)- 1", 2)) + >>> newton_raphson("log(x)- 1", 2) 2.718281828458937968804105873 """ x = a @@ -31,10 +31,10 @@ def NewtonRaphson(func: str, a: int, precision=10 ** -10) -> float: if __name__ == "__main__": # Find root of trigonometric function # Find value of pi - print(f"The root of sin(x) = 0 is {NewtonRaphson('sin(x)', 2)}") + print(f"The root of sin(x) = 0 is {newton_raphson('sin(x)', 2)}") # Find root of polynomial - print(f"The root of x**2 - 5*x + 2 = 0 is {NewtonRaphson('x**2 - 5*x + 2', 0.4)}") + print(f"The root of x**2 - 5*x + 2 = 0 is {newton_raphson('x**2 - 5*x + 2', 0.4)}") # Find Square Root of 5 - print(f"The root of log(x) - 1 = 0 is {NewtonRaphson('log(x) - 1', 2)}") + print(f"The root of log(x) - 1 = 0 is {newton_raphson('log(x) - 1', 2)}") # Exponential Roots - print(f"The root of exp(x) - 1 = 0 is {NewtonRaphson('exp(x) - 1', 0)}") + print(f"The root of exp(x) - 1 = 0 is {newton_raphson('exp(x) - 1', 0)}") From a3296a179a92a54e4159bb9822105ee5db33fbde Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 07:06:22 +0100 Subject: [PATCH 12/19] newton_raphson --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index f2d275cc5614..1045023e967e 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -8,7 +8,7 @@ from sympy import diff -def newton_raphson(func: str, a: int, precisionm 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.141592653680804119362982272 From 91c286e838cc988646a478f5c73eb7dad76c77d4 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 07:09:19 +0100 Subject: [PATCH 13/19] precision: int=10 ** -10 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 1045023e967e..3371b23935f6 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -8,7 +8,7 @@ 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.141592653680804119362982272 From 015de71c2a8e2d189d44fdf256831db4e9c65472 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 07:19:11 +0100 Subject: [PATCH 14/19] return float(x) --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 3371b23935f6..4b22913bd712 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -24,7 +24,7 @@ def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float: x = Decimal(x) - (Decimal(eval(func)) / Decimal(eval(str(diff(func))))) # This number dictates the accuracy of the answer if abs(eval(func)) < precision: - return x + return float(x) # Let's Execute From 395e0b8725d74f6a351f72f3dcd7ed599e1f1689 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 07:28:52 +0100 Subject: [PATCH 15/19] 3.1415926536808043 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 4b22913bd712..8dc505f5e386 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -11,7 +11,7 @@ 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.141592653680804119362982272 + 3.1415926536808043 >>> newton_raphson("x**2 - 5*x +2", 0.4) 0.4384471871911695062638833812 >>> newton_raphson("x**2 - 5", 0.1) From 814e8720dd1af731dd345a3fb51293f255dc2c66 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 08:04:49 +0100 Subject: [PATCH 16/19] Update newton_raphson_method.py --- arithmetic_analysis/newton_raphson_method.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 8dc505f5e386..2fcc9d1e2849 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -13,11 +13,11 @@ def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float: >>> newton_raphson("sin(x)", 2) 3.1415926536808043 >>> newton_raphson("x**2 - 5*x +2", 0.4) - 0.4384471871911695062638833812 + 0.4384471871911695 >>> newton_raphson("x**2 - 5", 0.1) - 2.236067977499789696465261251 + 2.2360679774997896 >>> newton_raphson("log(x)- 1", 2) - 2.718281828458937968804105873 + 2.7182818284589379 """ x = a while True: From 6295bf38058678f16110ba4a3d5baa8cf46566bd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 08:10:10 +0100 Subject: [PATCH 17/19] 2.23606797749979 --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index 2fcc9d1e2849..f97bc804949b 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -15,7 +15,7 @@ def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float: >>> newton_raphson("x**2 - 5*x +2", 0.4) 0.4384471871911695 >>> newton_raphson("x**2 - 5", 0.1) - 2.2360679774997896 + 2.23606797749979 >>> newton_raphson("log(x)- 1", 2) 2.7182818284589379 """ From b0613c0c27197c7a02a19eb5d62466ede14631bd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 08:16:19 +0100 Subject: [PATCH 18/19] Update newton_raphson_method.py --- arithmetic_analysis/newton_raphson_method.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson_method.py index f97bc804949b..8aa816cd0d04 100644 --- a/arithmetic_analysis/newton_raphson_method.py +++ b/arithmetic_analysis/newton_raphson_method.py @@ -17,7 +17,7 @@ def newton_raphson(func: str, a: int, precision: int=10 ** -10) -> float: >>> newton_raphson("x**2 - 5", 0.1) 2.23606797749979 >>> newton_raphson("log(x)- 1", 2) - 2.7182818284589379 + 2.718281828458938 """ x = a while True: From 264fafbae755ec0a5e9a3c79ed85b470ded4bc5c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 15 Dec 2019 08:23:43 +0100 Subject: [PATCH 19/19] Rename newton_raphson_method.py to newton_raphson.py --- .../{newton_raphson_method.py => newton_raphson.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename arithmetic_analysis/{newton_raphson_method.py => newton_raphson.py} (100%) diff --git a/arithmetic_analysis/newton_raphson_method.py b/arithmetic_analysis/newton_raphson.py similarity index 100% rename from arithmetic_analysis/newton_raphson_method.py rename to arithmetic_analysis/newton_raphson.py