We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e7a65 commit 2a87e86Copy full SHA for 2a87e86
ArithmeticAnalysis/NewtonRaphsonMethod.py
@@ -1,4 +1,4 @@
1
-# Implementing Newton Raphson method in python
+# Implementing Newton Raphson method in Python
2
# Author: Haseeb
3
4
from sympy import diff
@@ -20,8 +20,8 @@ def NewtonRaphson(func, a):
20
21
# Let's Execute
22
if __name__ == '__main__':
23
- # Find root of trignometric fucntion
24
- # Find value of pi
+ # Find root of trigonometric function
+ # Find value of pi
25
print ('sin(x) = 0', NewtonRaphson('sin(x)', 2))
26
27
# Find root of polynomial
@@ -30,7 +30,7 @@ def NewtonRaphson(func, a):
30
# Find Square Root of 5
31
print ('x**2 - 5 = 0', NewtonRaphson('x**2 - 5', 0.1))
32
33
- # Exponential Roots
+ # Exponential Roots
34
print ('exp(x) - 1 = 0', NewtonRaphson('exp(x) - 1', 0))
35
36
0 commit comments