[Numpy-discussion] what is the point of dx for np.gradient()?

Benjamin Root ben.root at ou.edu
Fri Nov 4 14:20:49 EDT 2011

For np.gradient(), one can specify a sample distance for each axis to apply
to the gradient.  But, all this does is just divides the gradient by the
sample distance.  I could easily do that myself with the output from
gradient.  Wouldn't it be more valuable to be able to specify the width of
the central difference (or is there another function that does that)?

Ben Root
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111104/07b1c466/attachment.html>

More information about the NumPy-Discussion mailing list