This package allows to deal with power series which coefficients contain uncertainties.
It is build on top of uncertainties python package (see here).
Scope
- For now the following fuctions are available:
series addition and subtraction
comparision (greater than, less than)
series multiplication
series inversion, i.e. Z(g) ➝ 1/Z(g)
series division (in the assumption that all powers are non-negative)
exponentiation
analitic differentiation
substitution, i.e. calculation of a series Z(g) at the point g₀ to a number with uncertainty
approximation
some technical functions: pprint, save [to file],
Example
Assume two series:
Z₁(g) = 1.00(30) + 2.0000(30) g
Z₂(g) = -1.0(4) - 2.000(4) g + 999.00(10) g²
Then Z₁+Z₂ = 0.0(5) + 0.000(5) g + 999.00(10) g²
from unseries import Series
z1 = Series(2, {0: ufloat(1, 0.3), 1: ufloat(2, .003)})
z2 = Series(3, {0: ufloat(-1, 0.4), 1: ufloat(-2, .004), 2: ufloat(999, .1)})
print z1 + z2
Release files for unseries 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unseries-0.1.0.linux-x86_64.tar.gz | 8.1 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unseries-0.1.0-py2.7.egg | Legacy Egg format | - | - | Details |
| unseries-0.1.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 24.5 kB
Release files / unseries-0.1.0.linux-x86_64.tar.gz
| Download URL | unseries-0.1.0.linux-x86_64.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8200454e85eae2afd6018597b8334a3b264e877d00d77a5af12f82c79b0108b5
|
|
BLAKE2b-256 checksum How to use checksums |
7d3cffefb86ec90e9d84432bdfb2362ecb3cb631935346c3489cbaa2a7841df2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unseries-0.1.0-py2.7.egg
| Download URL | unseries-0.1.0-py2.7.egg |
|---|---|
| Size | 9.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
728e30679cf979d5d9e5b46947419be47ef9ae92a7ef0d6b58567515e907589b
|
|
BLAKE2b-256 checksum How to use checksums |
0bc94595eaed0bbda47434e92543b7e2b1946706d905300b7fdefb5ee2601e37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unseries-0.1.0-py2-none-any.whl
| Download URL | unseries-0.1.0-py2-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
23020fd0c1e03e200b4691c212cc3c4313864ceb5d66fedb903f7d6d7281fc12
|
|
BLAKE2b-256 checksum How to use checksums |
fbe7c0570943c687b03be2cf56f83a735b4c8e42938e8fee7aeae4a488438a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |