Skip to main content

A Python module to do polynomial division

Project description

Python module to do polynomial division

Python module to do polynomial division

Usage

Calculate the division of two polynomials

The solutions is a symexpress3 object

>>> import sym3polynomialdivision
>>> objPolyDiv = sym3polynomialdivision.Sym3PolynomialDivision()
>>> objPolyDiv.formula1 = "x^^3 - 2 x^^2 - 4"
>>> objPolyDiv.formula2 = "x^^2 - 3"
>>> objPolyDiv.calcDivision()
>>> print( f"Result: {objPolyDiv.divisionOptimized}\n" )
Result: x + (-2) + (x^^2 + (-3))^^-1 * 3 * x + (x^^2 + (-3))^^-1 * (-10)

Options

Options for the resultant

>>> import sym3polynomialdivision
>>> objPolyDiv = sym3polynomialdivision.Sym3PolynomialDivision()
>>> objPolyDiv.formula1 = "y^^3 - 2 y^^2 - 4"
>>> objPolyDiv.formula2 = "y^^2 - 3"
>>> objPolyDiv.variable = "y"
>>> objPolyDiv.calcDivision()
>>> print( f"Quotient: {objPolyDiv.quotient}  Remainder: {objPolyDiv.remainder}\n" )
Quotient: x + (-2)  Remainder: 3 * x + (-10)

Command line

python -m sym3polynomialdivision

  • Help: python -m sym3polynomialdivision -h
  • Division: python -m sym3polynomialdivision "x^^3 - 2 x^^2 - 4" "x^^2 - 3"

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

sym3polynomialdivision-0.0.2.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

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

sym3polynomialdivision-0.0.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sym3polynomialdivision-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c20de8a4b7738eb307beed228c7c2ed79545e716a72f8ddc070e84acf7779cfd
MD5 f2f0219e5c0273fb128725010d3738e9
BLAKE2b-256 8997ce6bce5939faf2aa32f6a36a86c00b16087955e6f16579b79785eb058f0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sym3polynomialdivision-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09ac74ea8fd83803050f6cb42c3b5d4cb168fa95cfd866bb10dc18894d1f2370
MD5 dabaf31e33da9bf67efaa4207d1c12fa
BLAKE2b-256 eb539711e80f41d2cf1e5976ad21af8f8a5818f93b380baddd86890d3ca9ac1f

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