Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Obtain a spectral basis of a modular number system
ResourceFunction["IntegerSpectralBasis"][h] gives the spectral basis of ℤh. |
The spectral basis of the integer 12:
In[1]:= |
Out[1]= |
The spectral basis of a prime is always {1}:
In[2]:= |
Out[2]= |
Reconstruct any integer modulo another integer from its spectral decomposition and spectral basis, the former of which is computed by the resource function IntegerSpectralDecomposition:
In[3]:= |
Out[3]= |
This work is licensed under a Creative Commons Attribution 4.0 International License