Anomalies
Implement the anomaly free solution of arXiv:1905.13729 [PRL]:
Obtain a numpy array z of N integers which satisfy the Diophantine equations
>>> z.sum()
0
>>> (z**3).sum()
0
The input is two lists l and k with any (N-3)/2 and (N-1)/2 integers for N odd, or N/2-1 and N/2-1 for N even (N>4).
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])
Example
A sample for 4<N<13 with integers until |30| with ~400 000 chiral solutions can be download from: [JSON]
Metadata
Release files for anomalies 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anomalies-0.2.8.tar.gz | 4.3 kB | Without provenance | Details for anomalies-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anomalies-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for anomalies-0.2.8-py3-none-any.whl |
Total release size: 8.3 kB
Release files / anomalies-0.2.8.tar.gz
| Download URL | anomalies-0.2.8.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2d6ac6af50d29f29a446c6532ce1bc4c5ba7d48beacbe93f0a18aba37cdeb76
|
|
BLAKE2b-256 checksum How to use checksums |
51ee7a2ec34ec2d6b5a8a44100d3e1b4d38d8b36c1b031f433f726f4fd60a427
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / anomalies-0.2.8-py3-none-any.whl
| Download URL | anomalies-0.2.8-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd4b98662bab58f9031c7996feec24fb87e10361bf1643caa30cf487cf912af
|
|
BLAKE2b-256 checksum How to use checksums |
fd17a12ba8ea0612517b948ef709b4f5a55fda6c393d6307e73206f64214ddde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for anomalies 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.