Skip to main content

A Cython frontend to the fast C++ symbolic manipulation library GinacSym.

Project description

Downloads Visitors

GinacSympy: GinacSym Python Wrappers

A Cython frontend to the C++ library GinacSym (https://github.com/mithun218/ginacsym), a fast C++ symbolic manipulation library.

Introduction

GinacSym (made on GiNaC, https://ginac.de) is a fast C++ symbolic manipulation library released under GPL v2 or above. It has many features:

  • It is build on C and C++ libraries: gmp,mpfr,flint,cln
  • It provides fast computations for multivariate polynomial operations (expansion and factorisation) using flint library, and
  • symbolic computations: solving linear or nonlinear systems of equations, simplifications, series, limit, differentiation, integration, Infinity, functions with dependend variable, real symbol,complex symbol,...
  • It has many special functions which are computed using flint library.
  • Linear Algebra with numerical or symbolic coefficients.
  • Indexed objects, tensors, symmetrization
  • Clifford algebra
  • Color algebra
  • and many more

GinacSympy is an interface to this library. It is built with cython.

Motivation

We are aware of the existence of the Sympy Python Library, a full computer algebra system. However, because sympy is a pure Python library (Sympy now depends on mpmath as an external library), symbolic manipulation of huge algebraic expressions is slow using it. Consequently, we have made an effort to create a computer algebra system that is both extremely fast in comparison to Sympy and quite simple to install, much like sympy.

Installation

GinacSympy releases are available as wheel packages for Windows and Linux on PyPi. Install it using pip:

python -m pip install -U pip
python -m pip install -U ginacsympy

Short usage

>>>from ginacsympy import *
>>>a,b,c,d=Ex('a,b,c,d')
>>>expr=(a+b+c+d)**5
>>>expr=expr.expand()
>>>expr.factor()
(a+b+c+d)**5
>>>from ginacsympy_abc import *
>>>(x**2*y+y*x+y*x*b+a*x+b*x**2*y).collect(lst([x,y]),True)
x**2*(1+b)*y+x*(1+b)*y+a*x

For in-depth documentation click here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ginacsympy-1.0.4-cp313-cp313-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.13Windows x86-64

ginacsympy-1.0.4-cp312-cp312-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.12Windows x86-64

ginacsympy-1.0.4-cp311-cp311-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.11Windows x86-64

ginacsympy-1.0.4-cp310-cp310-win_amd64.whl (7.7 MB view details)

Uploaded CPython 3.10Windows x86-64

File details

Details for the file ginacsympy-1.0.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for ginacsympy-1.0.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 95a47b243a07923fbf491d853eb37abbabc5493ac50b408de1c438dc5ac8536a
MD5 5040080c1b9288e393ac0cfc5646e97c
BLAKE2b-256 ba87c9d9f31880032ed7dbbd1b3443d01a2720647d611c0816f6783df84bc1cb

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for ginacsympy-1.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 102a3cc018b71d36efae47ccfb893f3ec355aee6238071e38c4232bec728e462
MD5 af5df399df651628622ad86cc71277c7
BLAKE2b-256 d6d84617594a105a83d46e0b85a82aa9cad0f19f95deba6b079bb5dabf73a3b0

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for ginacsympy-1.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 51b89c097a5870e4ab3b5771bdf0fa2f4f3aef7e4a1587bcc9f215d6c3aca2af
MD5 09774b6df45879fc61ecda3987610913
BLAKE2b-256 145a0701fccdf0c248ddb5e8369e5a8d356f08c3de7489f7695d6391be527974

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for ginacsympy-1.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3df0a501616968ca2a000b40bd73490bcd0b0c63535f1d9e74510721d5d53690
MD5 19874fb524bba56b9f00a0fc19ede817
BLAKE2b-256 6636e07111eff03b226c0a85f604c63828d27c807979bd081a76bff6c2d99646

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