maroba / findiff

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

Feature request: Generate coefficients from offset specification #34

Closed rdaly525 closed 3 years ago

rdaly525 commented 3 years ago

Very cool package!

I have a use case where I want to specify the offsets directly to generate the coefficients similar to https://web.media.mit.edu/~crtaylor/calculator.html.

Is there a way to do something along the lines of: coefs = findiff.coefficients(deriv=2, offsets=[-3,-2,-1,0,1], symbolic=True)

Thanks!

maroba commented 3 years ago

Thanks for the request!

I have implemented the feature and deployed a version 0.8.8 to PyPi.

rdaly525 commented 3 years ago

Awesome!! Just tried it out and it works great! Thanks for implementing this.