findiff icon indicating copy to clipboard operation
findiff copied to clipboard

(doc) which scheme is chosen for which point

Open Tigraan opened this issue 4 years ago • 1 comments

As the derivative of a given numpy array has the same size as the initial array, it could be worth mentioning how the differentiation switches between the backwards/forwards/centered scheme.

Looking at operators.diff() it uses "center" whenever it can apply it, "forward" at the left (low-index) boundary and "backward" at the right (high-index) boundary, but the source code is not that easy to read, and it is not written anywhere in the doc either.

Tigraan avatar Sep 23 '19 14:09 Tigraan

That is correct. I will update the documentation accordingly.

maroba avatar Sep 27 '19 12:09 maroba