maroba / findiff

Python package for numerical derivatives and partial differential equations in any number of dimensions.
MIT License
438 stars 61 forks source link

Input for non-uniform spacing #77

Closed IamJYC closed 9 months ago

IamJYC commented 9 months ago

HI,

Thank you very much for the very helpful package. I was wondering when inputting non-uniform spacing if I should use the coordinates of x (the independent variable) or dx (say x.diff()). Thank you very much!

Cheers,

maroba commented 9 months ago

@IamJYC For nonuniform grids, you give the coordinates instead of spacing. Here is an example (at the bottom of the page).

IamJYC commented 9 months ago

@IamJYC For nonuniform grids, you give the coordinates instead of spacing. Here is an example (at the bottom of the page).

Thank you for your prompt response!