Grammar corrections

Just small corrections to grammar and spelling, no code change.
This commit is contained in:
phaluch 2018-10-08 03:03:53 -03:00 committed by GitHub
parent c8e7a65475
commit 2a87e8625f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# Implementing Newton Raphson method in python # Implementing Newton Raphson method in Python
# Author: Haseeb # Author: Haseeb
from sympy import diff from sympy import diff
@ -20,8 +20,8 @@ def NewtonRaphson(func, a):
# Let's Execute # Let's Execute
if __name__ == '__main__': if __name__ == '__main__':
# Find root of trignometric fucntion # Find root of trigonometric function
# Find value of pi # Find value of pi
print ('sin(x) = 0', NewtonRaphson('sin(x)', 2)) print ('sin(x) = 0', NewtonRaphson('sin(x)', 2))
# Find root of polynomial # Find root of polynomial
@ -30,7 +30,7 @@ if __name__ == '__main__':
# Find Square Root of 5 # Find Square Root of 5
print ('x**2 - 5 = 0', NewtonRaphson('x**2 - 5', 0.1)) 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)) print ('exp(x) - 1 = 0', NewtonRaphson('exp(x) - 1', 0))