Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

cheby-0.3.3-cp312-cp312-win_amd64.whl (170.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

cheby-0.3.3-cp312-cp312-musllinux_1_1_x86_64.whl (788.4 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

cheby-0.3.3-cp312-cp312-musllinux_1_1_i686.whl (821.5 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

cheby-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

cheby-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl (185.8 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

cheby-0.3.3-cp312-cp312-macosx_10_9_universal2.whl (327.8 kB view details)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

cheby-0.3.3-cp311-cp311-win_amd64.whl (170.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

cheby-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl (789.8 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

cheby-0.3.3-cp311-cp311-musllinux_1_1_i686.whl (819.7 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

cheby-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.3 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cheby-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl (184.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

cheby-0.3.3-cp311-cp311-macosx_10_9_universal2.whl (327.4 kB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

cheby-0.3.3-cp310-cp310-win_amd64.whl (169.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

cheby-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl (789.2 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

cheby-0.3.3-cp310-cp310-musllinux_1_1_i686.whl (820.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

cheby-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (264.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cheby-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl (183.5 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cheby-0.3.3-cp310-cp310-macosx_10_9_universal2.whl (325.3 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

cheby-0.3.3-cp39-cp39-win_amd64.whl (167.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

cheby-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl (789.5 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

cheby-0.3.3-cp39-cp39-musllinux_1_1_i686.whl (820.6 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

cheby-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (264.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cheby-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl (183.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cheby-0.3.3-cp39-cp39-macosx_10_9_universal2.whl (325.4 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file cheby-0.3.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: cheby-0.3.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 170.8 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

Hashes for cheby-0.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 85c83416cc804b539d602b8ed5d95580845993b8faca2edd6a41ad238a11fe4f
MD5 0e482a638f9ab5bf7125aa54ad32ed88
BLAKE2b-256 d8ea7a53fe722da7ad32ce080fe35196d53748b3cb0ef5acb7f85bf19a4c6721

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 5bd1f8a33c0d8557d865088180d4774392f60738eec1092dfcc93b4d0f483afb
MD5 6dcd8d6a48ceb4c7a7143aeb3cbd2d01
BLAKE2b-256 dbcafb67310b1a7bcb63a310b066c710932285814b1e3959ee25569b4518b5da

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp312-cp312-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 897911483b3db43ba535a1a907a4e8ccd2b9e4fd9873e149d153a80c07d04402
MD5 2ceb61a002252b288a5a3e23a45b1e7b
BLAKE2b-256 70f689366ebc2574d4785c62464812e65d3b646d3108778bb1cb28bdb8b8949b

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 83ab05c77a9615218a9a498bf9f6c25a3970cbc938e347ee5b1ba45772a525b7
MD5 e5042222be7ee87297577b2ca32df3b4
BLAKE2b-256 3860d6e2e81f75b7d33685e071cab299b1958e87655463b6a22f4ddbbbc78740

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b2212678be3cb3e6132caad7fe88dc46dce4b7492603521c2d4c09b28b9c72ce
MD5 b4163e028907b688b33d6f6a2af6c019
BLAKE2b-256 8150aa0780d42ce9b6efd767d6e9014da8df6b833e2d5bfdea11ff6abbd4ea6c

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fe445e98eaacbef447e96ab489ca2257bffd4584d8d671ebf46ea63c38108d48
MD5 163c6eb9157807a6dac928c1b0b1560c
BLAKE2b-256 871e0d5cd2b629ccdee66f1ceec24e3d6a67ba58919c52cc565553e6ce89b4e3

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: cheby-0.3.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 170.3 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

Hashes for cheby-0.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3253236aa5cb73833a4ca55bfed7dc9921cf58d05fd7135ea77c692d9c724a46
MD5 d00657d0d06d5c97e945cb41c29e093e
BLAKE2b-256 ce308cbb78f601f5386137deba09b044fad32ac1f03f68e3d491d8ffde1523ef

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f6116ab02dde993cec8718ee9f6e5fd5ee4f059d0e58b361f509bc4df0181ce1
MD5 14e9fda6b8685791d0cf82af042258c8
BLAKE2b-256 2e734cf05f9f5bf2dc0e348131d3a00fda7b2c7b56bf2ff39fe11d71ec08ba7a

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 a155c1d1b86ef3bbe83556cab4a0f93a7400b539b850e1ba4354baa05d027e14
MD5 e2b54a9dfe7ad27d2866ba256fb68dd7
BLAKE2b-256 aa93237a391ad70f11818dd62a05ff0030cac21020dc78903c27bbb23543b2c3

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 843a5877a7f01c0b2fef97f68ad1ab8bd000a34d107aa36bca4a3eff2f946745
MD5 f79beddb705991e5fd360a02ca7da322
BLAKE2b-256 92e9628dde3bc2f64ca549bf23ff6eb1a4a694aa55f2dd061eecbdc53795673c

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0450cbeee18e01e8723a6178d9847d13b5c299401ea66a476f48ab92550ec872
MD5 f7e226e12aa5a0765ec0913ee8e84250
BLAKE2b-256 c6a5f29fffbf3cb02ce9c4e71d4c6aefb51d461cfd1120e200649c3240a9dd32

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ec8011c2c4f426293f3b2aa319decc1bf5e168495dded10d8aa6af87db58729f
MD5 8b7e18699762c7219203f78e8b2181fc
BLAKE2b-256 caee08b6f7cac5f00d13eb363e918d4ace766b6af6a6f962e316e841005ec291

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: cheby-0.3.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 169.6 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

Hashes for cheby-0.3.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 51230c56399620d26a5ee8a0c5a8d0084394407f08c1cbcbaad1d3adc9160455
MD5 a487ae1de0c063e09de508c01e776fa5
BLAKE2b-256 cbb80307aa913c8b130b88b620634ce5fedefbbd05d8c39e818bcd4a4e0f365c

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ba9bf0c71199101f4fa3908aa60d8b8325c2ed9de1d4e05fe06aadc6149551a3
MD5 05fdffc09aa90cc4d6592a24cedb7fd8
BLAKE2b-256 47bbde0fca404053ac9ae43ff87f410b83985d75c50cae3b721c6bb8be2f9b5f

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 3d9176e54418c6cac6907c67f5e06c8952f0e2ce144717930aaa57bb2fc662c4
MD5 15972ece23d2d4a90e723d2d48e83fc8
BLAKE2b-256 b44d166ef2d6ccb8c6ef818d4d55716fd7780716bb68cb103f0248832ea22407

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf6568afeb6744ffae66e04aeaf8c0d955a17682da6d7f64712e4f706ec4c42e
MD5 5cddf8ca799623924edea335a141b136
BLAKE2b-256 d6ca911d30cb9e9416894c915db7887470d020518930f74ce2fe18d1e75d3f91

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e7857b591e1be7d70b8e1fa48c532428f59280274be4402f4fdbf9b9b07f5ac0
MD5 6060820680232caa6217f290a68bc235
BLAKE2b-256 f01aec6430606e25fe5ff54f5ee71319c68c786f73a2b5ba1448215b255d8bc2

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 661e5f3ed22ab0925f5bf37b1cd81e82e43f7bf0961e141f92baa9489f2a429d
MD5 4e93f7d6902cb59e097b43988c036e38
BLAKE2b-256 e014cc6d93b5078d362c492d5703dad15c79e38795c62aea78686b5c7c16de2b

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: cheby-0.3.3-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

Hashes for cheby-0.3.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f2094144f007b54a2a6a5bfbd5ea96baa4c62529abb7f93d002565fd882b6cd3
MD5 1659e5712d04dc8783156b97317cda5c
BLAKE2b-256 6b0abcee01982be0485f66f3982cb0d2b3a783bc688c82036c5cde6dc3d55b32

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 2ddb07a0209b1787fe2ec51cf753a273afb8566f0d65569ce9242e97658a6026
MD5 da4e41b115dd7c4324e6df726eca22c1
BLAKE2b-256 04a45689dd69c57f6964e4251d1e7cc89514f250f86404d7280407afcfd3af04

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp39-cp39-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 6077832a1ee6a9161bdb37a1faa95c25c49b57c230ac67cce2e3bb7f9031cd89
MD5 a0132b8767d7b69a0aa8e9a4af6422f9
BLAKE2b-256 819cd05371677a8e5c5c6dce53e41cb00b7a4cb660b9ebe17cf6afbb27a2ca7c

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dccd76f80ffef6ad61805fb3f1ea31d61ff05a66bc302c87c66ce0c131d13f9a
MD5 ef33ea6d5cdebd4ca37bdfd04c643f86
BLAKE2b-256 cead8fa169212a5a7934151ed677eb7a2bdbdbd854eb129ddd61f1cc579482d4

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 01b6c64791f2d2b34a9ade745d8280231f6e483621851d0294a6749e2bb9c4af
MD5 8e3550c604b8a69ae7114bfbedfa30b8
BLAKE2b-256 dd8a1d37ec57a82d3c7595715060150af6b1c1dc126aeddf7c6b2921aaa52535

See more details on using hashes here.

File details

Details for the file cheby-0.3.3-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for cheby-0.3.3-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d205a9a9601c22f58243fcb7bff54f851bbd0761a7262e7c2a172a7ea77d13f6
MD5 89ad61f0b4affdf1e384ee8d955a0593
BLAKE2b-256 c9209b5d43febf9dab3d4f02dfe6ed7f5c003e74f872dd767a1ab799bd47f21a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page