Skip to main content

solving cyclotomic equation by radicals

Project description

cyclo: solving cyclotomic equation by radicals

cyclo(n, recur=True):
  solve cyclotomic equation by radicals
  return n-th roots of unity (except 1)
        [exp(2pi ij/n) for j=1,2,...,n-1]
  if recur is True, q-th roots of unity (q<n) are
    recursively replaced by radical expressions
  reference:
    J. P. Tignol
      "Galois Theory of Algebraic Equations" chapter 12

example code:

from sympy.printing import print_latex
from cyclo import cyclo

z = cyclo(17)
print_latex(z[0]+z[-1]) # 2cos(2pi/17)

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

cyclo-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

cyclo-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file cyclo-0.0.2.tar.gz.

File metadata

  • Download URL: cyclo-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.3

File hashes

Hashes for cyclo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ebd9139b1a78dcb14a15f3936fbd185bf5c0b966460b590642e956c341949e26
MD5 d4e11c381f12536003e2de8a0c854ff8
BLAKE2b-256 a206d3a6242a42815abacad7ab2022123a133c0edf834cee5344b53c21b84eaf

See more details on using hashes here.

File details

Details for the file cyclo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cyclo-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.3

File hashes

Hashes for cyclo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62af3bebe82eca9a05e85c7d6508db64549a139cf8c6f555aee1fb5480ff2db3
MD5 392251ef5abdb87fbf1055d8bfb5711a
BLAKE2b-256 870b058ac665c69418cbf9fed2a663717ff92c8b8b89b873d827a98160f51ee2

See more details on using hashes here.

Supported by

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