Anomaly cancellation
Project description
Anomalies
Implement the anomaly free solution of arXiv:1905.13729 [PRL]:
A set of integers $n_i$ ($i=1,2,\ldots,N$) satisfying the Diophantine equations
can be parametrized as a function of two sets of integers $l$ and $k$, with dimensions $(N-3)/2$ and $(N-1)/2$ for $N$ odd, or $N/2-1$ and $N/2-1$ for $N$ even.
The function is implemented below under the name: free(l,k)
Install
$ pip install anomalies
USAGE
>>> from anomalies import anomaly
>>> anomaly.free([-1,1],[4,-2])
array([ 3, 3, 3, -12, -12, 15])
>>> anomaly.free.gcd
3
>>> anomaly.free.simplified
array([ 1, 1, 1, -4, -4, 5])
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
anomalies-0.1.3.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file anomalies-0.1.3.tar.gz
.
File metadata
- Download URL: anomalies-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 934b748e908509fbfddbc357c74708eefdead443e459eb83a3e96d84c8c60429 |
|
MD5 | c8a4dd6b940f423245a4ba1a6edb9e71 |
|
BLAKE2b-256 | b7188a837beace6dfc1561ceb6f7d2d882102a12972f24bbfa1fd6427975cd62 |
Provenance
File details
Details for the file anomalies-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: anomalies-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef55e0f508a4ec70d6612a6ded5a68cbf49c26845d73199879d1ad92ad9722f |
|
MD5 | aaa60954d6a78d47bf5aa225c1432f72 |
|
BLAKE2b-256 | f31b0989b7f3977ebf71e0397bfe89e89c2caae067f0d7e1e734f1ed3d2925d5 |