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

Uploaded CPython 3.12 Windows x86-64

cheby-0.3.7-cp312-cp312-musllinux_1_1_x86_64.whl (790.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

cheby-0.3.7-cp312-cp312-musllinux_1_1_i686.whl (822.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

cheby-0.3.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (270.0 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

cheby-0.3.7-cp312-cp312-macosx_10_9_x86_64.whl (187.9 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

cheby-0.3.7-cp312-cp312-macosx_10_9_universal2.whl (331.2 kB view details)

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

cheby-0.3.7-cp311-cp311-win_amd64.whl (172.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

cheby-0.3.7-cp311-cp311-musllinux_1_1_x86_64.whl (792.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

cheby-0.3.7-cp311-cp311-musllinux_1_1_i686.whl (821.7 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

cheby-0.3.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.2 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cheby-0.3.7-cp311-cp311-macosx_10_9_x86_64.whl (187.0 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

cheby-0.3.7-cp311-cp311-macosx_10_9_universal2.whl (330.9 kB view details)

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

cheby-0.3.7-cp310-cp310-win_amd64.whl (171.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

cheby-0.3.7-cp310-cp310-musllinux_1_1_x86_64.whl (791.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

cheby-0.3.7-cp310-cp310-musllinux_1_1_i686.whl (820.6 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

cheby-0.3.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cheby-0.3.7-cp310-cp310-macosx_10_9_x86_64.whl (185.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cheby-0.3.7-cp310-cp310-macosx_10_9_universal2.whl (328.3 kB view details)

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

cheby-0.3.7-cp39-cp39-win_amd64.whl (169.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

cheby-0.3.7-cp39-cp39-musllinux_1_1_x86_64.whl (791.3 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

cheby-0.3.7-cp39-cp39-musllinux_1_1_i686.whl (820.9 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

cheby-0.3.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cheby-0.3.7-cp39-cp39-macosx_10_9_x86_64.whl (185.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cheby-0.3.7-cp39-cp39-macosx_10_9_universal2.whl (328.5 kB view details)

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

File details

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

File metadata

  • Download URL: cheby-0.3.7-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 173.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cheby-0.3.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8f80417fded21b048d746b8e9f770c9672d3ad9b6addae68964ef8e3e1693460
MD5 07c9e0664dadb8f5d0b86e77220b1c7d
BLAKE2b-256 f286800877154ed54c371fcfe75c7cf787cff5ecc14d2357a032143546d62246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 baad8ffc6e84b8b7f75006906e64af4e07479c414d3f4c5dbd04fbecd6fb398f
MD5 2bd6fd8886551ee6809bb8ec8cb3418e
BLAKE2b-256 6ea2d75168c8ec38d8d92a90e3321aee9c07e8d19c26442eedbddcc802ce528a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 bc053bdd473c858403166ff314de5937cae906622c2e2f8840bc4e93acceb05d
MD5 93432de15b236803c787a2c236e8853a
BLAKE2b-256 7b4728ede27bd0f4dc3e24fa9d7e7bd6ae51afe3c1e59f2863653ce3501f2a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a2f545b7733d09338136e1c9ed835f625257f1cb1603864dff2406827b9d6d1
MD5 133e0ddb45107525e865ce268fc9f6b1
BLAKE2b-256 000195420e842bf313a2dae444eb597424fd4253704263bd3461b81fd5e26e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2dd74569568419bfe78bd022bccdd687b17978af2f6181b4a79528b8dfa7a72a
MD5 94e196c9f3419d6a4a8bbe65efae25ab
BLAKE2b-256 5f3697fc82276cba84289b0f549720b5e18b60afad4b1a5131e4a8a71b0802cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 81a9f0c2787fee71d86707ed5644ab42580636fd51ca45e4d847965de3a43505
MD5 1d3b9e3045cc05bdb241d828ee087c6f
BLAKE2b-256 cc3f14939a841d9f7176aa1f5cf986adfed1ce4a0734dfa5163cb3a1f7362a7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.7-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 172.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cheby-0.3.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 95e4123e62a61896ab201003716ac383089082b01c562ffc7c392a98bbae3276
MD5 094847b23ee8a8defcc7e1e0ffc65d2d
BLAKE2b-256 48016e6b906de2c217348acaa8b087d089e6caf10d887b61ceb11c87d12fc7f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 07746bc8a56ddc973878d6ecee9e4bdc83b39985d1be596bd9f3a1586c944245
MD5 7269a8f5fb710b62569db73a1725f6b5
BLAKE2b-256 a548a2fea6dd2c8eec391c3f4c2f73e2f28e8e626d963a256ba51fe0242234f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 ed2ffed7b278fd1515e4db3f67e163efadf4802784ce0f3878d9a5cf5b4fde10
MD5 5ed71fedf2fc967a5b13f1f588ff54f3
BLAKE2b-256 10e73f068c99958d00ec164bf8ac8c64197eb39368012d93fa46ef437c1a5086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5b208698df8c4f080c8c029d706189d8610e11606f72d48a95c730d3c03bedf
MD5 94676a3bfe6e4f86580b073889d3875f
BLAKE2b-256 f19b9eb509b6e4a958003ff3651a2f93c2f8328fb09cd17cef653de6a8f60605

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 df8d24576123d2974c89ff4ee171ef8f784ef5f21a6413e218b3ed42ed67251f
MD5 76bbd8650c02bc213203c88436649620
BLAKE2b-256 c5b696fd29b1ef0dcf83d5ae7113b3a4e80bd3bb15513b016c16c31b56d656ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 579fa21275dbc1737f31227fcfd59113c93d566f18db7f4fead15335cf8750a0
MD5 15cb7ff5c8c71d441fe49403e208ba90
BLAKE2b-256 164f7c9b0f848badde5bae2ed416380fcddfd8b314802eb79e6bd81081b5bf8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 171.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cheby-0.3.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4241911071c76968dde323c38ae39206a094076a285969d25675fbed79c4c494
MD5 9f625f5d20187c86d95362ff65e15b30
BLAKE2b-256 16ed198e8d90f56871f23572b1616eb876751cf3ea254514c28cd9a0c1307887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 057c8eed3d4c83cacdba97789b84672f462bb5a9eac6708951158d3d99e24701
MD5 823195e448cd6712382aae3bcbb873c9
BLAKE2b-256 6ae359e7bcb299444ab4039bf9fd35560a49e998c54aa92aede121ba8c2e1fa4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 fbd57d701554953765e133d399c4e0a4e49c1c5da53974ec4843799b38ad27f9
MD5 a196094b512bb854d159fd4f6ed4ca88
BLAKE2b-256 37791b06df2e3d4224367031bd86d215ad7eedfd675563c81bc2b328e4cccee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0ad30bcb1300446f76c986e94c89a708486e1c9d635dd9036f2e4ade934798b
MD5 352cce92dc12344f4e76389490ae70b8
BLAKE2b-256 d7330b5e623fa813f63b402cff0ccef0c00b0a51de576e8c66856ea5093860ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9543a4bf3610264caa20f8a4b4d195de54938d4ef7a7eb6ac89403f8ae71cbdd
MD5 17acaca974f4f447b0ecc49999c5ce1f
BLAKE2b-256 c3f0cbfc7eb6982c259e5b79e14a76e520c03460286cd41a89b0cb892c08d3cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e18c0bc09effcf216d9041a622a14ec27160549fa0198528e621c0077b845cc9
MD5 7ea31ff373ee5ab41a4ca198d46526ad
BLAKE2b-256 fca0d8290985ab589cecb8d32ea4fb4f151903955616142a4524addf95e402d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 169.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for cheby-0.3.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 56bbb35e3e7b6de8556d310d06ad13c0bdb72ad44c9c30a16c467c2675ee4b35
MD5 9b43a594b4b7a7b9157e922764f89463
BLAKE2b-256 7ab364d9a2507722bb1e83fafc7563c455c374b4b55081243ec0029a81819357

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 60a98394aac5f643f8e2de6a743117d1fa9fb71bc4801dbca1cef20510901b53
MD5 18d2ea230027c76369066674cc42b755
BLAKE2b-256 8ec7b6985cdf958f78522f64a46bf6e52e42ca5442350ea5b88de4dea6950fc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp39-cp39-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 58279c165073ac5450a432c3caa392fea052eb910925037f7e1ce2f29e159f6f
MD5 a19f64cd56d70ca67efb6566b973ce92
BLAKE2b-256 0aa68761b3158c0f384216752817195f17d7ae783ec84fd1c73992c0de131108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce01bec1255fe736e88de4bdaed7779c664575b958ed43fbfb06255cd74a6210
MD5 d9c0296d61edf728de61f360b16ca991
BLAKE2b-256 067bbdc9179c7335712ce4ebc585ba0036648e50b1034fe491fc8a7bf3092406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8038d544a03926265bb88bd49fc31146726eae0e483593909a0d4e224bf92311
MD5 ff4a5f941eafd6853abcba31027b5fb8
BLAKE2b-256 d380d4c6bc203f86ca70d363131f5d5484f507ceb6395974d0e0057551c1f5b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.7-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fd4ccfa3a869eb4c8b17f062921f2eb0196070833726fa2ee26c29084fd9042f
MD5 0457852f7981834c8cd7434a358ce499
BLAKE2b-256 890be7920af7e3343520630e1f1535af5e069ee3da381bbf99124f5d8bc6e20a

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