Skip to content

Commit

Permalink
Merge pull request TheAlgorithms#440 from phaluch/patch-1
Browse files Browse the repository at this point in the history
Grammar corrections
  • Loading branch information
harshildarji authored Oct 8, 2018
2 parents c8e7a65 + 2a87e86 commit f33c3ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ArithmeticAnalysis/NewtonRaphsonMethod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Implementing Newton Raphson method in python
# Implementing Newton Raphson method in Python
# Author: Haseeb

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

# Let's Execute
if __name__ == '__main__':
# Find root of trignometric fucntion
# Find value of pi
# Find root of trigonometric function
# Find value of pi
print ('sin(x) = 0', NewtonRaphson('sin(x)', 2))

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

# Exponential Roots
# Exponential Roots
print ('exp(x) - 1 = 0', NewtonRaphson('exp(x) - 1', 0))


Expand Down

0 comments on commit f33c3ba

Please sign in to comment.