Skip to main content

Anomaly cancellation

Project description


Python package Upload Python Package DOI

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()
>>> (z**3).sum()

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)


$ pip install anomalies


>>> from anomalies import anomaly
array([  3,   3,   3, -12, -12,  15])
array([ 1,  1,  1, -4, -4,  5])


A sample for 5<N<12 with integers until |30| with ~400 000 chiral solutions can be download from here [JSON]

Project details

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.2.4.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

anomalies-0.2.4-py3-none-any.whl (3.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page