There is a newer version of the record available.

Published September 24, 2021 | Version v0.2.3
Software Open

restrepo/anomalies: Zenodo version

Authors/Creators

  • 1. Universidad de Antioquia

Description

Anomalies

Implementation of  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 here [JSON]
 

Files

restrepo/anomalies-v0.2.3.zip

Files (18.1 kB)

Name Size Download all
md5:1a4e2bd52dd6d788b610c09219840f60
18.1 kB Preview Download

Additional details

References

  • arXiv:1905.13729
  • arXiv:2102.06211
  • Diego Restrepo. (2021). Set of N integers between -30 and 30 with sum and cubic sum zero and 4<N<13 [Data set]. Zenodo. https://doi.org/10.5281/zenodo.5526707