Search Result

Collapse
2 results in 0.0040 seconds.
Keywords
Members
Tags
python derivative
  •  

  • knielsen73@gmail.com
    Guest started a topic derivative in numpy

    derivative in numpy

    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...
    See more | Go to post

  • DDCane
    started a topic derivative and newton raphson

    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...
    See more | Go to post
    Last edited by bartonc; Oct 30 '07, 12:36 AM. Reason: Added [CODE=python][/CODE] tags.
Working...