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](https://pybind11.readthedocs.io/en/stable/). It also relies on [Eigen](http://eigen.tuxfamily.org/index.php?title=Main_Page) for linear algebra.
## Installation
The simplest way is to use pip:
`bash pip install cheby `
The package can be installed directly from source:
`bash 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](https://docs.pytest.org/en/latest/). They can be run using
`bash pytest tests `
## License
This project is licensed under the MIT License - see the [LICENSE](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
File details
Details for the file cheby-0.3.1-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 170.7 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 526bab4900b8220c0f37dbc5fff05c6ae8b85b5d92e4b41f83ded292441160f8 |
|
MD5 | 4afa7a9dc254438530cf08e8725ace8a |
|
BLAKE2b-256 | c39dafabae7925a845b3aafb5284a9c44e346fd564f170d19e238e35c1d15d2e |
File details
Details for the file cheby-0.3.1-cp312-cp312-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 788.2 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 073ec47bbde383b3cad75d407f49893aa0853d10310957c9788a7fea1ef286e6 |
|
MD5 | 16d379f15f9c2eeb6f5edb958e07453e |
|
BLAKE2b-256 | e38492a6f4de858944bf865345a8f6085c08c2974675c61771ff7c1b80d94dba |
File details
Details for the file cheby-0.3.1-cp312-cp312-musllinux_1_1_i686.whl
.
File metadata
- Download URL: cheby-0.3.1-cp312-cp312-musllinux_1_1_i686.whl
- Upload date:
- Size: 820.6 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8aebf3c8e7ed27534f2e410415f372b647ca8be18e6d900b7f96cdcd741ef2 |
|
MD5 | a5e6afdf0d1fac6fce3939852cad6387 |
|
BLAKE2b-256 | 871c43c9bc12a1cba0fdbdd13d9cabae58b91ab1f8fff0b72cd80ec452dd2d5c |
File details
Details for the file cheby-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 265.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f64a03d339dd1044b0e53bed7362f654c0c6b77b9469c508fcbb0c34090a9a |
|
MD5 | 1ab155f09f993ac77459fdaa9fac5098 |
|
BLAKE2b-256 | 79c91e4c3834a247694c54618e30edf5473fd861bc4b8dc5ee7fd51a6589afea |
File details
Details for the file cheby-0.3.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 170.2 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65fcfb97252f32295cafee0ef30688837b90ed2865928009c5501bf9feca7847 |
|
MD5 | af70ac38e3da1efb25642ca4bbb5040d |
|
BLAKE2b-256 | d56924d3ba7cfcb30cbfac912c437036643b4fab58fe482e254c48d9186a5ef5 |
File details
Details for the file cheby-0.3.1-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 790.2 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0656f9c8dcb1949967cd01a397ff52af123577db561e79efd2c65312c9bc105 |
|
MD5 | 7589154f37ef4ba2000cb96c97f17b91 |
|
BLAKE2b-256 | 5fbae442617d1902157d545f95f981be2194e43f996df009c63182131142ec4c |
File details
Details for the file cheby-0.3.1-cp311-cp311-musllinux_1_1_i686.whl
.
File metadata
- Download URL: cheby-0.3.1-cp311-cp311-musllinux_1_1_i686.whl
- Upload date:
- Size: 819.8 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5ae945d588a040e5a1f80d70fba16be4bcb31c92937fe3c9451c1c0a329f40 |
|
MD5 | c1d57eac76b95ef5ebaaae453c973f61 |
|
BLAKE2b-256 | 85a5d4ec1747390cbfa9788e54ac4a93cc18db3ca8d8108b33663f49568e2155 |
File details
Details for the file cheby-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 265.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f13c02a992128c04959036b1b0ea3d73d3ccc498ea67afde11a76f66f502b30 |
|
MD5 | 8718d8c609f9bfc289a97cb942e2e7ff |
|
BLAKE2b-256 | 2a499772d7d450cc9a5558980a7de981f489e0283dde0c52d5d34de7cec85dca |
File details
Details for the file cheby-0.3.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 169.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba85b84cd0e8954e9239d9d63214f0b49ff8fcd175822a0aafe573fea09ebee |
|
MD5 | fc72fbd026dfc98d12618dcc978e12be |
|
BLAKE2b-256 | 948e7e96f7e0b54e0455b377e98262b447e3259fcb5405f3940ee5b00dddda62 |
File details
Details for the file cheby-0.3.1-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 788.8 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2336e374f0e08467880681efd0b8023240a57f3c1277383ff433accab23d64 |
|
MD5 | aaa31116a0f59d1c4fb4cd895db588b4 |
|
BLAKE2b-256 | 040fddf0678ba730d9adef9696a23298f70eac458a6695f86599e8b609eee72d |
File details
Details for the file cheby-0.3.1-cp310-cp310-musllinux_1_1_i686.whl
.
File metadata
- Download URL: cheby-0.3.1-cp310-cp310-musllinux_1_1_i686.whl
- Upload date:
- Size: 818.8 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52e0df7e504585fcdffb4d3fe73cbf53655563d8ac7df5140fed68d9df07d4d2 |
|
MD5 | fe778da668ec4761cae681eb299364c9 |
|
BLAKE2b-256 | 229800d2eba1d9e75ab6f41b44a17e6b2453aa19f50384a0ae9bba4252a47054 |
File details
Details for the file cheby-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 265.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5bb585aa26eebb0397b65668e3c54cc731b388ab4a00ffe6d0a39fdd2080344 |
|
MD5 | 96ba2c9e43d450c353cf734760004ebe |
|
BLAKE2b-256 | 6728709ab82b1fcde99aba37ea1029ed42b603db32977785f15e772480695dbc |
File details
Details for the file cheby-0.3.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 167.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf9bf2bad29e276e8ceb98ae4625e714bd53ef530f94e16af1c8ba0bde3e6e8 |
|
MD5 | 68ef6751523ce2809d4ae6fe2963ebcd |
|
BLAKE2b-256 | 1bc1a81553fd89ff574f613cd17122746e8a48863a6832c3701e5d90e1c3e0f0 |
File details
Details for the file cheby-0.3.1-cp39-cp39-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp39-cp39-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 789.0 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c90910ed5b111be44822b2e19e7e34485ce52621d5fb2078c56ffbbbabfe0736 |
|
MD5 | b76e486b0668a2a4daf192ae2d8d8597 |
|
BLAKE2b-256 | eb0ebf79bc825ea66ac57bed30fad14e89f5482f86fb4e99744b4d38149bef0f |
File details
Details for the file cheby-0.3.1-cp39-cp39-musllinux_1_1_i686.whl
.
File metadata
- Download URL: cheby-0.3.1-cp39-cp39-musllinux_1_1_i686.whl
- Upload date:
- Size: 818.9 kB
- Tags: CPython 3.9, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc0837a60314161750c4dca21b3ce28c59f3c5bd8a49efcfeae6c7828bea64b |
|
MD5 | 9939157363cca39b0eea65119a6ded4c |
|
BLAKE2b-256 | cd9406517bbca4ec7a75ad3ecfa746895c05dde39a36c65de3aef133cfb88973 |
File details
Details for the file cheby-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 265.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43caef165c4b4c65c5a40bcc00fb76211cc31fc12eee17c8b7fa855900e5cbf |
|
MD5 | a80ad428095bfec7a8a9126b5ba2811c |
|
BLAKE2b-256 | 30a72b6cf6f2768b70a97dd07b71057611103da302c6ee38a61fbb7fa2100c11 |
File details
Details for the file cheby-0.3.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 169.5 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ff80ece04334b6451100794518d6d2af33482665b486fc99f519331096f71f |
|
MD5 | 063b3d411c7dc9429020d5de7e7c71d9 |
|
BLAKE2b-256 | 6a7f458f4dd624268161e04f4c901a3241c2bfd79fb291fb20caa750b1a900ad |
File details
Details for the file cheby-0.3.1-cp38-cp38-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp38-cp38-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 788.8 kB
- Tags: CPython 3.8, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 428c685acfed3eeea407c05b6cd91ddd7a6ad339fdcb4bc006edd9a2bc4ae7e9 |
|
MD5 | 130c8595e268334b9569c26df843c95f |
|
BLAKE2b-256 | d7137aace55ab95343722a227ca5b1aef08ecd2d612af6ea4d7a2b8358a27f71 |
File details
Details for the file cheby-0.3.1-cp38-cp38-musllinux_1_1_i686.whl
.
File metadata
- Download URL: cheby-0.3.1-cp38-cp38-musllinux_1_1_i686.whl
- Upload date:
- Size: 818.4 kB
- Tags: CPython 3.8, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c103864a5bbe65ac202a4217c7a969744185a21e2cfbd0bf952fcf08ed4721d |
|
MD5 | 70f37a8ad7f2ce9e1bd11e13072e22a5 |
|
BLAKE2b-256 | 684f89bcb030982a5983f8fa6c029555b5d2461948903a56dc95087f41eb2e2f |
File details
Details for the file cheby-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: cheby-0.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 265.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab14b4bf714a701678a27eea1d0fc9bb8ed1ac5883861338763aed63b2db18c |
|
MD5 | 7f3ffa976809bbcc906928527cdac608 |
|
BLAKE2b-256 | 95c61474fb69a14866723a09333308a5ef8459fa06842e3ddd26da84efeac9bb |