Skip to content

Commit 2a87e86

Browse files
authored
Grammar corrections
Just small corrections to grammar and spelling, no code change.
1 parent c8e7a65 commit 2a87e86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ArithmeticAnalysis/NewtonRaphsonMethod.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Implementing Newton Raphson method in python
1+
# Implementing Newton Raphson method in Python
22
# Author: Haseeb
33

44
from sympy import diff
@@ -20,8 +20,8 @@ def NewtonRaphson(func, a):
2020

2121
# Let's Execute
2222
if __name__ == '__main__':
23-
# Find root of trignometric fucntion
24-
# Find value of pi
23+
# Find root of trigonometric function
24+
# Find value of pi
2525
print ('sin(x) = 0', NewtonRaphson('sin(x)', 2))
2626

2727
# Find root of polynomial
@@ -30,7 +30,7 @@ def NewtonRaphson(func, a):
3030
# Find Square Root of 5
3131
print ('x**2 - 5 = 0', NewtonRaphson('x**2 - 5', 0.1))
3232

33-
# Exponential Roots
33+
# Exponential Roots
3434
print ('exp(x) - 1 = 0', NewtonRaphson('exp(x) - 1', 0))
3535

3636

0 commit comments

Comments
 (0)