Skip to main content

A Python module to make the Tschirnhaus transformation

Project description

Python Tschirnhaus transformation module

A Python module for the Tschirnhaus transformation

Usage

Do the Tschirnhaus transformation

The solutions is a symexpress3 object

>>> import sym3tschirnhaus
>>> objTschirnhaus = sym3tschirnhaus.Sym3Tschirnhaus()
>>> objTschirnhaus.startFormula = "2 x^^4 + 3 x^^3 + 4 x^^2 + 5 x^^1 + 6"
>>> objTschirnhaus.calcTschirnhausTransformation()
>>> print( f"Tschirnhaus transformation: {objTschirnhaus.getFormulaDepressed()}\n" )
Tschirnhaus transformation: 4 * x2^^4 + x2 * (4388530/50653) + (4252423075/29986576) + x2 * (5/2)^^(1/2) * (-383565/50653) + (5/2)^^(1/2) * (-49204155/1874161)

Options

Options for the Tschirnhaus transformation

>>> import sym3tschirnhaus
>>> objTschirnhaus = sym3tschirnhaus.Sym3Tschirnhaus()
>>> objTschirnhaus.steps = 2
>>> objTschirnhaus.variable = "x"
>>> objTschirnhaus.startFormula = "2 x^^4 + 3 x^^3 + 4 x^^2 + 5 x^^1 + 6"
>>> objTschirnhaus.calcTschirnhausTransformation()
>>> for iIndex in range( 0, objTschirnhaus.numberOfTransformations): print( f"Depressed: {objTschirnhaus.getFormulaDepressed(iIndex)}, reversed: {objTschirnhaus.getFormulaReversed(iIndex)}")
Depressed: (9357/2048) + 2 * x1^^4 + x1^^2 * (37/16) + x1 * (91/32), reversed: x1 + (-1) * x + (-3/8)
Depressed: 4 * x2^^4 + x2 * (4388530/50653) + (4252423075/29986576) + x2 * (5/2)^^(1/2) * (-383565/50653) + (5/2)^^(1/2) * (-49204155/1874161), reversed: x2 + (-1) * x1^^2 + (-37/64) + (273/148) * x1 + (-4/37) * x1 * (5/2)^^(1/2)

Command line

python -m sym3tschirnhaus

  • Help: python -m sym3tschirnhaus -h
  • Tschirnhaus transformation: python -m sym3tschirnhaus "2 x^^4 + 3 x^^3 + 4 x^^2 + 5 x^^1 + 6"

Graphical user interface

https://github.com/SWVandenEnden/websym3

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

sym3tschirnhaus-0.0.1.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

sym3tschirnhaus-0.0.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file sym3tschirnhaus-0.0.1.tar.gz.

File metadata

  • Download URL: sym3tschirnhaus-0.0.1.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sym3tschirnhaus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6ee8f2e0d956cc3beb174e3083a4399a0c12da391b1eb04d87ae2684bda899ef
MD5 0d14c827ab266f903447b8a84dc08b6a
BLAKE2b-256 6fd7cf30a18ea6aef64da925814a7897f49e670c2d441c573cd86a45f1d8214c

See more details on using hashes here.

File details

Details for the file sym3tschirnhaus-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sym3tschirnhaus-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c236cd9a4d148bc0a8331d585f99ce5dff3ada936b1e8851742251aee5a5b5c3
MD5 cae1e7e18a8e0482279d0a27189de36f
BLAKE2b-256 e8b47a26b1baaed2b50b6e981551dbc611111e2b6543cc367963753877b3cc51

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