Skip to main content

Anomalies

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()
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: DOI [JSON]

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.8.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anomalies-0.2.8-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for anomalies-0.2.8.tar.gz
Algorithm Hash digest
SHA256 c2d6ac6af50d29f29a446c6532ce1bc4c5ba7d48beacbe93f0a18aba37cdeb76
MD5 399929cc05189a0ef28dbaebc5c6a5a6
BLAKE2b-256 51ee7a2ec34ec2d6b5a8a44100d3e1b4d38d8b36c1b031f433f726f4fd60a427

See more details on using hashes here.

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

Hashes for anomalies-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd4b98662bab58f9031c7996feec24fb87e10361bf1643caa30cf487cf912af
MD5 a930a48dda3d02013abf5ab466750863
BLAKE2b-256 fd17a12ba8ea0612517b948ef709b4f5a55fda6c393d6307e73206f64214ddde

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page