Anomaly cancellation
Project description
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]
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anomalies-0.2.8.tar.gz.
File metadata
- Download URL: anomalies-0.2.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2d6ac6af50d29f29a446c6532ce1bc4c5ba7d48beacbe93f0a18aba37cdeb76
|
|
| MD5 |
399929cc05189a0ef28dbaebc5c6a5a6
|
|
| BLAKE2b-256 |
51ee7a2ec34ec2d6b5a8a44100d3e1b4d38d8b36c1b031f433f726f4fd60a427
|
File details
Details for the file anomalies-0.2.8-py3-none-any.whl.
File metadata
- Download URL: anomalies-0.2.8-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bd4b98662bab58f9031c7996feec24fb87e10361bf1643caa30cf487cf912af
|
|
| MD5 |
a930a48dda3d02013abf5ab466750863
|
|
| BLAKE2b-256 |
fd17a12ba8ea0612517b948ef709b4f5a55fda6c393d6307e73206f64214ddde
|