No project description provided
Project description
intpolylib
Library wchich contains operations on polynomials with integer coefficients. It includes basic operations like addition, subtraction, multiplication, division with the rest, derivative, but also factorization and finding rational roots. There are 3 represantations of polynomials: list of coefficients, dictionary of non-zero coefficients and list of points (ListPolynomial, DictPolynomial, PointsPolynomial).
Installing
pip install intpolylib
Usage
Addition
>>> from intpolylib import ListPolynomial
>>> poly = ListPolynomial(x^2+x+1)
>>> poly2 = ListPolynomial(x+1)
>>> print(poly+poly2)
x^2+2x+2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
intpolylib-0.2.1.tar.gz
(9.3 kB
view details)
File details
Details for the file intpolylib-0.2.1.tar.gz.
File metadata
- Download URL: intpolylib-0.2.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84c8e3a47401ff157379684b4672b146a24b585fafd77812a81d72e511c062d3
|
|
| MD5 |
93fc01cc7d4ed494597b7a5b50e6d8bd
|
|
| BLAKE2b-256 |
3eb26e963695dd3fb3f26a99a5ecb40336cf8e11557d077b724c758123868de2
|