maroba / findiff

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

Allow the user to specify difference method #50

Closed MauroVA98 closed 1 year ago

MauroVA98 commented 2 years ago

Instead of FinDiff using central coefficients whenever possible and switching to backward or forward coefficients if not enough points are available on either side, allow the user to specify a desired method.

maroba commented 1 year ago

So, you basically want to apply the differential operator only at single points instead of the whole grid? Otherwise prescribing the method would not work on at least some part of the grid...

MauroVA98 commented 1 year ago

Let's say I have velocity measurements and I want to differentiate them to get accelerations, technically I only have the previous measurements for velocity at any given time-step therefore I would like to apply backward differentiation only.