Hi,
I am looking to do a simple derivative. I would expect such a function
to be available in numpy, but can't find it. I have written my own,
but just curious if anybody knows of such function in numpy.
Cheers,
Kim...
Search Result
Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
-
derivative and newton raphson
i have made a code for finding a derivative and now im trying to use it to help me with a code for the newton raphson method:
[CODE=python]
def derivative (f,x,h):
import math
return float(1/(2*h)) * (f(x+h) - f(x-h))
def solve (f,x0,h):
delta= f(x(n))/fp(x(n)
for x(n+1) in solve():
x(n)-delta[/CODE]
the first def works fine but i cant get...