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.5-cp312-cp312-win_amd64.whl (172.7 kB view details)

Uploaded CPython 3.12 Windows x86-64

cheby-0.3.5-cp312-cp312-musllinux_1_1_x86_64.whl (789.1 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

cheby-0.3.5-cp312-cp312-musllinux_1_1_i686.whl (821.4 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

cheby-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (266.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

cheby-0.3.5-cp312-cp312-macosx_10_9_x86_64.whl (186.9 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

cheby-0.3.5-cp312-cp312-macosx_10_9_universal2.whl (329.6 kB view details)

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

cheby-0.3.5-cp311-cp311-win_amd64.whl (172.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

cheby-0.3.5-cp311-cp311-musllinux_1_1_x86_64.whl (790.7 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

cheby-0.3.5-cp311-cp311-musllinux_1_1_i686.whl (820.6 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

cheby-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cheby-0.3.5-cp311-cp311-macosx_10_9_x86_64.whl (186.0 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

cheby-0.3.5-cp311-cp311-macosx_10_9_universal2.whl (329.4 kB view details)

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

cheby-0.3.5-cp310-cp310-win_amd64.whl (171.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

cheby-0.3.5-cp310-cp310-musllinux_1_1_x86_64.whl (790.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

cheby-0.3.5-cp310-cp310-musllinux_1_1_i686.whl (819.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

cheby-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (263.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cheby-0.3.5-cp310-cp310-macosx_10_9_x86_64.whl (184.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cheby-0.3.5-cp310-cp310-macosx_10_9_universal2.whl (326.9 kB view details)

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

cheby-0.3.5-cp39-cp39-win_amd64.whl (169.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

cheby-0.3.5-cp39-cp39-musllinux_1_1_x86_64.whl (790.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

cheby-0.3.5-cp39-cp39-musllinux_1_1_i686.whl (819.6 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

cheby-0.3.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (263.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cheby-0.3.5-cp39-cp39-macosx_10_9_x86_64.whl (184.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cheby-0.3.5-cp39-cp39-macosx_10_9_universal2.whl (327.0 kB view details)

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

File details

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

File metadata

  • Download URL: cheby-0.3.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 172.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cheby-0.3.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e24ff150f57715991d163d6a9083a4752b1118bb3caff86b3f66c45be1d5d610
MD5 986b2a3ef7aa502569d34239c56b6dc7
BLAKE2b-256 33bf07e6ac922add91032079629c8f325ead304df668113cd631bdfc81910a4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 07671f18f6080387d45faaabb78f4fa451adfec407dc4f479227843ad1ce63c3
MD5 b34ec1c98fb346aaa9a975a76f25d489
BLAKE2b-256 333387afed1a0134fd3d5ee84299140ef37271efbcd8a95ddd1f03fb2f3b6521

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 0b2fce1650def29d75491a7e6734ad72f3bfc5170eec31c280548295a2819979
MD5 37d4c452567c0ae407abed6b68d6c886
BLAKE2b-256 796381d5819e40d73a82d34d619bd6be816184e895bc4825c434c0cbac7baaa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53712cd2c8455dd92411608abcd229496f8d546b5a9479fca8abb149b4429cc5
MD5 b566b2923fc3a2d980cbf9160f1fedee
BLAKE2b-256 7d437678dc104dece00e07b7389307249c3145180a48714dfd0eb2a5d6f7fe2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 974c484ccb21f858efbe043c090c90d96b699325ff274489619571391b09f029
MD5 6dd8ed4913496ace56583a5593540f81
BLAKE2b-256 ad316a5ddf11c31422eb9b82463192930463c9d1fd45653a384c9ffb54d0ae7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9e36eeaeec1e8d7627ffbb9501df83517cced1a1aa72beede8cc37919b4e5945
MD5 bc38ec3f914e58afd114ee55edc8b541
BLAKE2b-256 a0e4311d8f120ea836969c2e469d5589c874039f34640df9e8f8f2d26a3120b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 172.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cheby-0.3.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d9cfe2e3daf2699501bc57ff9e24ad5ae765645803df5d4a1623729099e1d3ab
MD5 14cfcb0dafe40e4f63bb3eb7e72e3035
BLAKE2b-256 f6a3383eb367e7cebeb6c93f383ed05fa0d65201ca56801387b215de9ff99f75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8c1bed10baa8bbf9a579c2c7b60110e460b7f494aa75514965ec4f4296b9068d
MD5 ee772e4565ae19ce857d6dc457a0b5da
BLAKE2b-256 ea6b78735d5811f82ff71da721bd810dab1fb1dbf0a609a94774519d075188a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 c00990ed84244310e34921a853bc48c69055c0e98ead8bf582e086b271a6011b
MD5 461764d4e557e51d45ba4f61e4b89d6a
BLAKE2b-256 a41cbcb4c19632e9394eed9c38918efe14c7132723ed81ecdc1ecd1d0538e772

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eab9af8e0b91c2cc898da15efd048759e886ae63082f244e3af5d276bc745c01
MD5 47732879539aca9fb498e50cd4898ff7
BLAKE2b-256 2bf40e51bd84616d6deef2251c14366ac9ba3037b7ac4c6ad0c771cf701f7caa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 877e903af5024e8dd7813c61760fec85329512a7a0cfb858afb16b189ae6e155
MD5 ed80289ce027f2fb817f7102c35ae77b
BLAKE2b-256 203e255771af496a7b3a93b4c3733e2f9acda71ce0c989a16db52e674313c03e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 db98e15013625c10baaef964bf40d28fbfe85954ad7db6f131e183f57e8c39cf
MD5 29f9227d24b4a48c102e8228367de7fc
BLAKE2b-256 b38a4216f612a9f4b8ff278948c928a2f68f35083774ee7556b765a3c60bc425

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 171.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cheby-0.3.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f4986ae6d00b0c5cd789880c5347c2c6a3c685242054114cb2fd685cceea065
MD5 16b1858341b94f63671fcdb3d6f0e8b0
BLAKE2b-256 36276cfb6c2e9bbbef0309b0a6cd3ca69e2c8e423332d8f4beb183489d6bfc91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cc57e62b852175d88475641e2835281f851686de6f3d8b37e602133466515695
MD5 b2b5455b04ef58264679d75837d32655
BLAKE2b-256 98e11e6be20440b941635d9dabcd132f958a50ae3623562aaab20d6cf6b05ca5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 088b1f03d855e707f6bfac3aea422b305033a75a56e3e99d5b804162b0555bdf
MD5 2a92aff294581ce21c7893a93578a34d
BLAKE2b-256 54011ef7f7aa0e9c5835f87f04463ac90cf04be7ab8c7e55308e26d042dcc0da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 159d33611c59baef0350e5f8a44fface9a422f2119f954589bd3dce1b5b668ef
MD5 cf4ea4a76d31001545ed247d251acf79
BLAKE2b-256 a52948023078501885e7679e480e8115d20513de86e170cb433c2604cec35eb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 995269998755d79499679f6b08b6a3e1216c59c7ff35780408985e556514d7ac
MD5 0d5b0881688f5b622903c660089914cb
BLAKE2b-256 3154adf1e285a5315fac8deea9c5c9cb1777141310f4cae20be42fcb66f8a337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d3cd3bcf7bb355c495cd24e5d461e6f8a906aad1d3889d487875f1e9e9c159da
MD5 457f9404cd558b681728e62a2e32b0b0
BLAKE2b-256 cb94f7f59e0eee7916bf6409b0085537817a652ec003712c4ae0816249a783ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 169.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cheby-0.3.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 21b2882c9bc09411769db6c2a811a13829237bec02b2f44fd063cbd323e7ef91
MD5 e8272b3c68fbb0b53f1a39166f210702
BLAKE2b-256 5b4dae35467adf04f46378b40d3b629d6d6407c945b056b27c6d639427a74d0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 14e403fe9d61a202b61b9b20c04fdb207d9960831d67379be7a00e5b00e71898
MD5 2519ec7392ef5d730442a8b67d03aae6
BLAKE2b-256 742867a15dc94678f67f2a00d5be1e35a939d9cc33d0093cbe75e2c45b36f880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp39-cp39-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 42846a5c98602e21b80224ad136802d99c02550ad53c8f94adf419f31e15fe58
MD5 53e747740092e24b7355cfe733459002
BLAKE2b-256 c4956721d45c01f356dbd48bc3260d6e73ef92a83a5a671df356a7e1ffca0031

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77a15fc2df63c8ae98cc84c607910566ffdd0c57aaea41d24263fe024f3de0c5
MD5 74927b171dd22bfdd0faa27527726536
BLAKE2b-256 619d32dfa13324327fb53910712230195ecc079e2d714b30d1fcf1d1d244d8a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 112dd77d0141e348cdcd9336ef5b1d6b37675ccd17f86b278ae72c829b03851a
MD5 a3fca50b0e871c1d05f5c9636b7f5336
BLAKE2b-256 2fcae08b0616dbba2dab21156f3d81576db830c33d26bccfa2d9b8ab68b7aab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ef88856e7408e42ce04eee872ec6de6f9e6ace62258b0f24f56a3e72352b7fac
MD5 bae50b159bbd0d16f12f98e8b29a6484
BLAKE2b-256 1ef394a1087d2b053db7a32c1196cd96b5a68dfbf01e8f3121996e1f555736a0

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