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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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