Spectral Derivatives
This repository is home to Python code that can take spectral derivatives with the Chebyshev basis or the Fourier basis, based on some pretty elegant, deep math. It's useful any time you want to take a derivative programmatically, such as for doing PDE simulations.
Installation and Usage
The package is a single module containing derivative functions. Before installing the module you will need numpy, scipy, scikit-learn, and matplotlib. To install, execute:
python3 -m pip install spectral-derivatives
or from the source code
python3 -m pip install .
You should now be able to
>>>from specderiv import *
For usage examples, see the Jupyter notebooks in the examples folder: Chebyshev and Fourier
References
- Trefethen, N., 2000, Spectral Methods in Matlab, https://epubs.siam.org/doi/epdf/10.1137/1.9780898719598.ch8
- Johnson, S., 2011, Notes on FFT-based differentiation, https://math.mit.edu/ stevenj/fft-deriv.pdf
- Kutz, J.N., 2023, Data-Driven Modeling & Scientific Computation, Ch. 11, https://faculty.washington.edu/kutz/kutz_book_v2.pdf
Metadata
Release files for spectral-derivatives 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spectral_derivatives-0.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spectral_derivatives-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / spectral_derivatives-0.1.tar.gz
| Download URL | spectral_derivatives-0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9745d3ba3ffda0d2d14eaa2693ee4b73326e918b39a0082f674c3d953ec088bd
|
|
BLAKE2b-256 checksum How to use checksums |
1b6977b874e5cc9f3119561d55cb4ef73d8e72d9bee716f7bd2bde7d5fb12755
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / spectral_derivatives-0.1-py3-none-any.whl
| Download URL | spectral_derivatives-0.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4bb78f5fcec327db45fae0e0decee356ac1530130046bcfbb8ccefc164997a4
|
|
BLAKE2b-256 checksum How to use checksums |
9034c8e90c319acd5d4d6772affdc350fd3c2ab11eaf87d0570053013107c154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|