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

Uploaded CPython 3.12 Windows x86-64

cheby-0.3.2-cp312-cp312-musllinux_1_1_x86_64.whl (788.2 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

cheby-0.3.2-cp312-cp312-musllinux_1_1_i686.whl (820.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

cheby-0.3.2-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.2-cp312-cp312-macosx_10_9_x86_64.whl (185.9 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

cheby-0.3.2-cp312-cp312-macosx_10_9_universal2.whl (327.9 kB view details)

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

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

Uploaded CPython 3.11 Windows x86-64

cheby-0.3.2-cp311-cp311-musllinux_1_1_x86_64.whl (790.2 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

cheby-0.3.2-cp311-cp311-musllinux_1_1_i686.whl (819.9 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

cheby-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.4 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cheby-0.3.2-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.2-cp311-cp311-macosx_10_9_universal2.whl (327.6 kB view details)

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

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

Uploaded CPython 3.10 Windows x86-64

cheby-0.3.2-cp310-cp310-musllinux_1_1_x86_64.whl (788.9 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

cheby-0.3.2-cp310-cp310-musllinux_1_1_i686.whl (818.8 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

cheby-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

cheby-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl (183.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

cheby-0.3.2-cp310-cp310-macosx_10_9_universal2.whl (325.4 kB view details)

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

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

Uploaded CPython 3.9 Windows x86-64

cheby-0.3.2-cp39-cp39-musllinux_1_1_x86_64.whl (789.1 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

cheby-0.3.2-cp39-cp39-musllinux_1_1_i686.whl (819.0 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

cheby-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (265.7 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

cheby-0.3.2-cp39-cp39-macosx_10_9_x86_64.whl (183.7 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cheby-0.3.2-cp39-cp39-macosx_10_9_universal2.whl (325.6 kB view details)

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

File details

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

File metadata

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

Hashes for cheby-0.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4207648f5671eafa76ca0ae6028767e0658293113ef069951a68a236d1421d44
MD5 dbbe7627f041d74eeb6103a10010589f
BLAKE2b-256 9adaf5ab7e21399faecf3374f95f2385413ef239ba6c72b4ef03b4bb8ee431d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 796285bdaa5b7a23871005422ad35ec77ed45f57567211b892a9c1ddd28bad20
MD5 873f035694f5a8a1ac0e69b723423818
BLAKE2b-256 17e2907b937fc2aeb14c8e905a9548e09eec752315195dfe089cc5f129db35a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 799c996dbf3fab0b97a38467e7224c4e4205a79f8e59b41e765647178b7ce781
MD5 e49e5dc3768d718507ed95cb7804eb87
BLAKE2b-256 8f1cdf32103f1e95d31478dcdbc26052aa02a3c9986abeaf8a892909b5758d5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49d2c3132fa734454ddc6565f815480ac2143a101a60ae286c67a7de8ea59d28
MD5 02e617b34c0f459184904ed46434feb0
BLAKE2b-256 b4ef867b1c969f84cd17926e28a4cc3f3a4d16c64b08a04d6a36ce6edd5cf092

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 94029055724d91c4810d28a54a3c7f647a8a103ad76a426dd2f69b53750d06df
MD5 3c09cba5044de8c722bdeaf54647e6c6
BLAKE2b-256 4b281c67c11799480596754558ac4820cafbb076391ec81c64df8a2a4ec59f89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 8e6b96fcbf7e308a9e226d2c6cd1bd5ba4f4d5588068492ff3b5434ab35379eb
MD5 080faae061e252284944618567a31904
BLAKE2b-256 eb481e2102ba3e0b934c9ea6c2175a921053d08b01a22d5516029d24b961b836

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.2-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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b2256b9acfd06f7ea30892834f45436d2e7de2728737062bdaf39a16d60c2ce2
MD5 47392853a07ef3c0ef6bede24f834a52
BLAKE2b-256 b378ef4e3af4ddbec87fd6e22438d76321cd6a643777de02508c272df2c2972d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3faff63b3c4ddc555d3a23a35badda04ddcad4111d75fa78bf8e04ef1325b817
MD5 abae201ffbb1f143ec1ccf869542b96d
BLAKE2b-256 60946c068e0a8403b70c4f1823be080b1d7a7e8e2efaa948505f243cf1f28ae3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 6cc57f2d99da28c6efa1f312d2e063793e4723ccd93122826b0e32ea124cbb39
MD5 44c6aa7ecf1307d2d56ccfa784681a62
BLAKE2b-256 3aa416ef76b9438b744fd166436a957692b459310d0977067844d2bc88659439

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 757c57c63a7c0d6124c13a5fbcd2e81e9cbe34094b43eadce17227ce70828156
MD5 34756900f3a3ef748778d49edb75ab6e
BLAKE2b-256 1d89520c001353374b50bca0fab3b23f46eb6232e9266002be09d410f46a8454

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 51cc8026f3acc2e2a3793272c4e343205b5cb852b7e1bb8812349adf4a8e4159
MD5 4309b6aa6bf591093649b915f3e081c5
BLAKE2b-256 04a7e4587923248242accf836c17aaf47a2075e7b20fa52414a382bf03805707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c9e58b5d79369bc40b5d170095c53d4e43b8c81cfe1f6a8ceeb93870c389cef3
MD5 ad227610c3e54e72027ef5b18f87417b
BLAKE2b-256 76095354a3318a230261ac945210c897fcb8f407637684a08dcf03e89d163e36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.2-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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 53472f34cae07839d142edcb6e833e9ec1410296decf316577538d04c6c3374d
MD5 a62eb223825e8b08b1b944e9e3b1be80
BLAKE2b-256 9bd1adcdc60c1980a323d2fc078164913e1a905056e5c356dcf1ff5b7c9b3be2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a254493e02797f7c7e6da40f0bde005fad0d29aa709c9b8054414dab628953d0
MD5 34ce3f821b450efa0cb93a5eac556ec6
BLAKE2b-256 d8382eaa1e351b673f861303374b74e8dd334088a6ec55d0b6ea7053a66a9730

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 225e03586cf03593233590b5e84fb6c912e36447d13e29b8d28a71af0cd3d79a
MD5 2d223862f5cd1cde4605a6d7020ee5ce
BLAKE2b-256 d61104a6b3295b6151ed232ba591a93b8dfdf902cc8a85c1671bf0913b730800

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8264a6e6ebd6cee3980b87012c8df14ba4519677dc2feba9b3aeee37943bb6ee
MD5 c460269bb673bb06c13764e793bb9a10
BLAKE2b-256 d2251278ef6d11831df0bcfb9a2a6b8487ce19281839a39248f6f4eb8e1c83ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 398936bf4311eb5e3a4893337a62db6bc268bc65a226619e05d5c251983b8ca1
MD5 114b574dc6a4c83c0d1e3bef25e5e351
BLAKE2b-256 ba3cf0c3c8f7925bf46d96ffd48a38d05d15fe7a627bc097018a04df3e136296

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 66fcc1af073c4f5730b3cb191c432295f8eb0b5d2ca29c99b0b0cad95d34418c
MD5 bbb2b56f887a71052a2700dcf35cb727
BLAKE2b-256 b8908a75c491a9206b6fff84481f620657dada94f0219cf8b94273acfa13ae4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cheby-0.3.2-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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9dd7e8e4eee67ed886a6b73aee564417f4381480c18d54227b496ad681a1a7db
MD5 174f7f54928c7aa5fb1bbc75c9211d36
BLAKE2b-256 f57b37e0b6ce037e2085cc00e9ddd000ead552698f19e70480b2e1be482f0958

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a4370e8b4f552179bceb5218fa240c2e36865413942f3bd93828ac0af67e61fb
MD5 befb971722e3e2f4c08c029acc30bd39
BLAKE2b-256 b778558b98ea04809ef031755e0880331b030992d1ecf54accf9c6e739fab7e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp39-cp39-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 9cc678ab795b1a9120f4b3905da07a802baa5139822818af997e522c2026ff0c
MD5 df4356d5d0256b5088c3e36a4d649db0
BLAKE2b-256 bac600567074dad26898b7dd7f84eff19a326edcdc062a22a037e5ebfea8ed69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5f0d8ca095ab3a58a50b2b694a741b00a24a7f7a4851671c59922c72f18ba94
MD5 3843a7ff3dcf181b12259db232dcfd08
BLAKE2b-256 9b61c95baf560317b71ceef134d7bb622cc94bfee6b9cbdde7ed2006ac75fe5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 647b5176ed99eee92bddaafa6c21a71029ff189beeb1398c59411c2eb61d157b
MD5 d5bff5e9cd850266d2aa2ddc42d7655c
BLAKE2b-256 bfda4ed3608b1dc4036693ac1825fdd1fdef3848e71783e96d2f92dba50749c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cheby-0.3.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4664d7057314ec9b7f9926643e5c12ba92ed83aabb2091f02ba5c0a681f6b56b
MD5 94a34c7b9c8d46b1e2d19bc15ba06778
BLAKE2b-256 e682f384079fadc068a15206be56af05142732eb7181ff1a3bed810103950a16

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