Functions represented as Chebyshev series
Project description
cheby
This package provides:
- Basis of Chebyshev polynomials of the first kind
- Functions represented as Chebyshev series
It is intended to be used for the resolution of differential equations using spectral methods. It is primarily a C++ library with a Python wrapper using pybind11. It also relies on Eigen for linear algebra.
Installation
The simplest way is to use pip:
pip install cheby
The package can be installed directly from source:
git clone https://github.com/GwenaelGabard/cheby
cd cheby
git submodule update --init --recursive
pip install .
This will require a C++ compiler and cmake.
Usage
The Python class Basis1D provides the following features:
- Evaluation of Chebyshev polynomials of the first kind and their derivatives
- Chebyshev points of the first and second kinds
- Differentiation matrix
- Matrix for Dirichlet recombination
The Python classes RealFunction and ComplexFunction provide representations of univariate functions as Chebyshev series.
THey provide the following features:
- Construction of the Chebyshev representation based on a Python function
- Evaluation of the function and its derivatives
- Addition, subtraction and multiplication
- Primitive and integrals (over the whole domain or over a subsegment)
- Roots and extrema
- Integer powers
See the Jupyter notebooks in the examples folder for examples of usage.
Unit tests
Unit tests are written using pytest. They can be run using
pytest tests
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cheby-0.3.8-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 178.8 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f9850336fb5476fee283e7c1522778bd1751e7ae46853beb02e50214fd073b5
|
|
| MD5 |
d5612b35a0874c2bcfaf15d2fe139968
|
|
| BLAKE2b-256 |
05b5c8081aa1f07cb283fa4e5f31bfb7bc82da9018a52f557f9dd5a61de89de8
|
File details
Details for the file cheby-0.3.8-cp312-cp312-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 797.2 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06c45a4243b35bb0ff03912cbd9a117894df881fcdd1e5ceecfcc834fe34573
|
|
| MD5 |
6ad64e81b38fecd99474e9a475f6b5c2
|
|
| BLAKE2b-256 |
0e4ffd676e80786c637ac4a1b532125a042fab2775b3c489a0e174e85e1080da
|
File details
Details for the file cheby-0.3.8-cp312-cp312-musllinux_1_1_i686.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-musllinux_1_1_i686.whl
- Upload date:
- Size: 826.4 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3173354b91dfa80aea10cea61434f88c4fc7e7c3b24046bca71bc2eca26e4684
|
|
| MD5 |
d41623e7ecba7ab0880e8c2e07067df8
|
|
| BLAKE2b-256 |
66d2a3ebfe9adc1081a86e861a37a792306594db834197bf189b548167b4617a
|
File details
Details for the file cheby-0.3.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 276.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
076715434c51ed64a257aba88535f5b851112fd66e952d206271e2d8ca2b24c3
|
|
| MD5 |
6f1e64b2dc153a9d84b419a70fde1363
|
|
| BLAKE2b-256 |
7513ab9287d79b716bd4140fcd6f5ea32f8d2af3cbba0ff1d95021f2d424fc83
|
File details
Details for the file cheby-0.3.8-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 151.8 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d5d0902521bd81109c938bb1f6d981c4e25fec2fcd398dbc7654a1d0a6f6ac4
|
|
| MD5 |
ad91d196b52add089453ba34418f3621
|
|
| BLAKE2b-256 |
7c59c89255d9fd989f996fbb87508138615a84f73fcbdb63f9890b46d9ccf9d9
|
File details
Details for the file cheby-0.3.8-cp312-cp312-macosx_10_9_universal2.whl.
File metadata
- Download URL: cheby-0.3.8-cp312-cp312-macosx_10_9_universal2.whl
- Upload date:
- Size: 340.8 kB
- Tags: CPython 3.12, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f3c6c4ad661f31ad84481dd14e93a0b1187426441a2721ed1b5b710602b1cce
|
|
| MD5 |
161d108542cb8395fb764cc6b41fee0f
|
|
| BLAKE2b-256 |
adeac3230f1178b25354607eb39cae5e1e1e39479268fe279e5a52aaf0dfa9d0
|
File details
Details for the file cheby-0.3.8-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 178.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e943fb36d8255b43360ac589a6373e558a8f31218b9bcf5c479af945cfaf467f
|
|
| MD5 |
c90614d79168156a35e7dcfa735a348e
|
|
| BLAKE2b-256 |
9abcfa79b37ed16822fd022b3dbb19db074d69bd4e1a8bd5374c2a5b3072246e
|
File details
Details for the file cheby-0.3.8-cp311-cp311-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 799.3 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdc293424c2d5f11043126df2a440f04888816d49c6c53794b92d9c0cf78774f
|
|
| MD5 |
f7a6ada29919f961e9b4d203087f4310
|
|
| BLAKE2b-256 |
38998d736d65264ac43976bae6cf7529555c9fa8a762443c6d56f5e3d192a2a2
|
File details
Details for the file cheby-0.3.8-cp311-cp311-musllinux_1_1_i686.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-musllinux_1_1_i686.whl
- Upload date:
- Size: 827.0 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c8b9bcebeb56b86f3e561b89001a084f5d6d6f882e42dd5c61a78e9c3443b3
|
|
| MD5 |
0abd4af3146a7be2a2aecaba86345c82
|
|
| BLAKE2b-256 |
9738297ab18997564038e5b95fbcabf997941db8e83ddb89de6958fc189aca17
|
File details
Details for the file cheby-0.3.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 276.9 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66d629d3146b998c20dcdf512195a053933ba5168e514f661e511ecfdc13aed8
|
|
| MD5 |
2ee190ec11685002fa1d82559dd16ba0
|
|
| BLAKE2b-256 |
7d7cfa5b9dff048925500601251bde353a2b1220848f85a6c64e6a60386b4114
|
File details
Details for the file cheby-0.3.8-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 151.8 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e339d47e7e0048c2ec7fc5acf1a593fe219f87deba49adf23abd15ae91bfaefe
|
|
| MD5 |
b2f920b319628053231a534609331d52
|
|
| BLAKE2b-256 |
3afea9cb180377e563c419db5bc087f97001c77b50545acbaa1e1c6781a8e875
|
File details
Details for the file cheby-0.3.8-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: cheby-0.3.8-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 339.7 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfd75828cc7f447223ddfa132ac1504107fed869a058a405f8f78bdf15b40931
|
|
| MD5 |
446b4cda9667545cd4c2cad37f9e440e
|
|
| BLAKE2b-256 |
90f3d8edcf8c0832d7020366836f32314e62a93536a04305a2b4fb399a83634d
|
File details
Details for the file cheby-0.3.8-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 177.4 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b46f90d9a6df0b21e3195432f43d810e191a681c26d6cf6e6abf40180b2dddea
|
|
| MD5 |
efc5894cb21bed648a7e136c70db4fc5
|
|
| BLAKE2b-256 |
0d2f02ab8d4fa78e37ac300e579ab53355e8479ca0e204dfc0e0e0d99ef83576
|
File details
Details for the file cheby-0.3.8-cp310-cp310-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 798.0 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed8887ae17c8c3accafc7d6bd098ab128ad07536c8f50839a38d60a95948928
|
|
| MD5 |
71812c0c93e780f28e385f2931e333d8
|
|
| BLAKE2b-256 |
918eb0ca9a4132000e2b32be81a53c77a35117f955acad3b760c64c301ebe629
|
File details
Details for the file cheby-0.3.8-cp310-cp310-musllinux_1_1_i686.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-musllinux_1_1_i686.whl
- Upload date:
- Size: 826.2 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd406c45d1dbd125e18506709d163dadc8edef67c62b7ea4c21a6def4b6a2a41
|
|
| MD5 |
168dc8285ede49e9dd5d1bee094c0fe0
|
|
| BLAKE2b-256 |
1b678ce97aef098ddacedd646cc3422b304c1ca9dbdb84e9842e983cc11e1ceb
|
File details
Details for the file cheby-0.3.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 275.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f9a44c6f10d73fafc33b68d2c1b7bb6ee8c801a331cb7ebc9f1f1b4edbd6c5
|
|
| MD5 |
96b90e9ef8bbf9f049a9da31aad28200
|
|
| BLAKE2b-256 |
da4730e6c5d89ade5c949daaf633caa9b513cb0f5fb7210055283edf632aa9f1
|
File details
Details for the file cheby-0.3.8-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 150.4 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e52b977e44858f642e87c4a7c180625bdfbed5f21ac8712bbe866a6522e666f
|
|
| MD5 |
98c93939226259eae5553ad36bec9479
|
|
| BLAKE2b-256 |
c1bf5f9b979aa6880dc3ffa5b79fbbe871d3d72ed78929d62a0c9dbc5d20ab03
|
File details
Details for the file cheby-0.3.8-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: cheby-0.3.8-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 336.8 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5616db4e8cc4e696934d55e9b34163980b401538d09ab834499c7b6cff66c049
|
|
| MD5 |
c9529dd453d78a699c832a49bef93f9f
|
|
| BLAKE2b-256 |
227bed283fb03f66bc43e4622d843e2e43d6316b7c65fe23893f1c924416a4a5
|
File details
Details for the file cheby-0.3.8-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 175.2 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b534eef416017721b3ba5a6553ed1377cf5a300999fc91fd50793be9d2b32c7
|
|
| MD5 |
fdd3bc9c0949135db4d2410a97d00e95
|
|
| BLAKE2b-256 |
80e8852b837f77190aa148ef5886b1756605af86589b0fdf850b1699d7bc451c
|
File details
Details for the file cheby-0.3.8-cp39-cp39-musllinux_1_1_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 798.3 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4c234aca1800c37f7c8764bc334a9e391f1ed41411c2bc004b19467d20b042a
|
|
| MD5 |
c314ba52a34e07f729b5deaec7195c72
|
|
| BLAKE2b-256 |
6fafc2eed3de81c2f67e1db865c882e4f16089c46658d0a6551cdd878981b5a5
|
File details
Details for the file cheby-0.3.8-cp39-cp39-musllinux_1_1_i686.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-musllinux_1_1_i686.whl
- Upload date:
- Size: 826.7 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a8a9b5f3d52a31b5b553bc003535ffd0c9086f3c7cd817bff1e18cafe249931
|
|
| MD5 |
fbb7e1a38aabdc74ab38143157d7534f
|
|
| BLAKE2b-256 |
87d45611396530410fcd105320b666baecf66d3f52a4068442adc9dcd5ff5d5b
|
File details
Details for the file cheby-0.3.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 275.8 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91eb62ab61e4ce4a336ae2ac18e968d3f4cfbfaff16d3dd5c9cbea2ef66dda8
|
|
| MD5 |
f88fc49bf673b5fbf618d3a6278e791c
|
|
| BLAKE2b-256 |
34703c34a7a08c2a1a7bfb1302b77e21dd444035d1c813c12879369a1ce2b10e
|
File details
Details for the file cheby-0.3.8-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 150.5 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
847fc1a034a38b1f5dbf4c8808bf1334812c3af14384fa6bdec001dde929d6d4
|
|
| MD5 |
b74c70b74612c2e6d0c5145eaa689152
|
|
| BLAKE2b-256 |
41c8c43bce28cf6eac363ab040d803ec21dfbe1731778bf980da439f3204da71
|
File details
Details for the file cheby-0.3.8-cp39-cp39-macosx_10_9_universal2.whl.
File metadata
- Download URL: cheby-0.3.8-cp39-cp39-macosx_10_9_universal2.whl
- Upload date:
- Size: 336.9 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bf842face5263720d06eb4ef7730976fd2fe8d98cae68191af8085ddb86308b
|
|
| MD5 |
b3fbb90a921f438f65a8ec8cdf434bf3
|
|
| BLAKE2b-256 |
78761d09c2d9b750b172ad3ef62b4d014f635bd558b6a44e5737c7f057abad1a
|