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]

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)

Source distribution for anomalies 0.2.8
File Size Uploaded
anomalies-0.2.8.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anomalies 0.2.8
File Interpreter ABI Platform
anomalies-0.2.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page