Skip to main content

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

Project description

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.2-cp312-cp312-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.12Windows x86-64

ginacsympy-1.0.2-cp311-cp311-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.11Windows x86-64

ginacsympy-1.0.2-cp311-cp311-manylinux_2_34_x86_64.whl (55.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

ginacsympy-1.0.2-cp310-cp310-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.10Windows x86-64

ginacsympy-1.0.2-cp310-cp310-manylinux_2_34_x86_64.whl (54.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

ginacsympy-1.0.2-cp39-cp39-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.9Windows x86-64

ginacsympy-1.0.2-cp39-cp39-manylinux_2_34_x86_64.whl (54.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

ginacsympy-1.0.2-cp38-cp38-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.8Windows x86-64

File details

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

File metadata

  • Download URL: ginacsympy-1.0.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 7.6 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6fa5bc105e9d39d938f15c554203339734f8c52bbec407b637376b3ed9a27d22
MD5 68aaf8344917d5f5882aba38040d7f26
BLAKE2b-256 ebd8870c68153195f690b5506fc570bfebf96c63fd0c3e085eb6a8999db48298

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ginacsympy-1.0.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 7.6 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 74d9eafb399c06e14848863b5ba8ff2f13afcdaf0ffca91d4ffa4df2d1cb5adc
MD5 2db652e2ce0a3a82c27a4a24a512d737
BLAKE2b-256 f8ffe03bcddaeb5014ab1534e46969084cdbb824c918628cee78c65210b7c458

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.2-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ginacsympy-1.0.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 896111ef694f28bb71a7677f35c4a5dd19da0e3b53089b91d9364d011fe4fdcb
MD5 3a9df2b7c263da1e8b837f83b898c927
BLAKE2b-256 e6204ddab2c74d7ccecd080d095a927c77d537c8713bb240c913fbba2aa860b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ginacsympy-1.0.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 7.6 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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 682fb6179104f417a52d78a2b8e584f42230e69271c54ccfa69a7b3ffe14dfc2
MD5 d694ecca31bc687103c8a011a373b209
BLAKE2b-256 91de5c6836acbd4a2f46a9e8d5cbb2a552e009f4b2186a0296860d8c904b6e85

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ginacsympy-1.0.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 78f32dfd90c7402c5b905c1eb756d600e36219d6bbbf482bd5f9c478d5ca7b19
MD5 d1eb086f41f87926ae2b00fef350ca3f
BLAKE2b-256 b251bb46a3c4f04b33079983e0f872c5031eb2125e7b7f4d96ccbfcd164920de

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 7.6 MB
  • Tags: CPython 3.9, 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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 05a74b429a332669798472173aed8da80c73a567090780edde160937e9943a3e
MD5 cd7c11cf6c83c5deeece2166b0f17cc3
BLAKE2b-256 6d009d4c8f753e3e7f9f9d729adbe07aa1b10f977c04b079da1f6413b916452d

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.2-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ginacsympy-1.0.2-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6a4ffb541c2373439be5dc0d0e27c8fc453ad86c03549aa950f6a77e37b7e6f6
MD5 0d22849997753caddc11f7b27eafda13
BLAKE2b-256 930b8f048542b0197e5a4b8c1c67e7e0e356afa82d3cf30aba786341eb0538da

See more details on using hashes here.

File details

Details for the file ginacsympy-1.0.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: ginacsympy-1.0.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 7.6 MB
  • Tags: CPython 3.8, 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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 29bcc9a095fe9644c88d2fa0dd3bca8a1ffcf683998c28f1aea510830936cd16
MD5 d4c2999ee8805930bbe8ec562295e5ce
BLAKE2b-256 fef94ca8e367bddd5ee11a67258bd07c4ca1b363dc5259fa8a8c5fed1d0c26c6

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