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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

ginacsympy-1.0.3-cp311-cp311-manylinux_2_34_x86_64.whl (54.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.10Windows x86-64

ginacsympy-1.0.3-cp310-cp310-manylinux_2_34_x86_64.whl (54.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.9Windows x86-64

ginacsympy-1.0.3-cp39-cp39-manylinux_2_34_x86_64.whl (54.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: ginacsympy-1.0.3-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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 262aa7c3366b959c3555db15b08bde51b4d77d8dd50a643b2d7475566e217bfd
MD5 1d02b84a8d316a6c6ee9a0f715e1a6ff
BLAKE2b-256 29a08eee85315a2d0edfc8d47ecdbffaf34f5bb0354ee0bda529f13fea6f4657

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ginacsympy-1.0.3-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.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 12f48a732797b2e34d04015c9014a86cd2c40213e455a30036f70901aeb2b20a
MD5 9449f88de0896d5e2d4aebbb0dba7309
BLAKE2b-256 3267a0cb5cb0d0c92314a6fad106353c57fbf3e15830297304ab07f20585b9fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ginacsympy-1.0.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0ce9fb2ec9f4c390ab710a44dae777cd4d77471cc8088c51ca0f064abc6ee640
MD5 654c3e7c332c83099bbf399e86ec4850
BLAKE2b-256 260c8799bc6b0bf869a85b68877fac0fd447d57bf02c2c670ba14d1daf4a72b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ginacsympy-1.0.3-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.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a7deffcd85135c96d5994ef48cc8d7f436900f5675ac3e17cc608add42f9d4e3
MD5 805ca4731d6fa6bc160a500974a9708e
BLAKE2b-256 9f28cadb9ffb5a05664f62ec93d029d3e4e3f188067c41f2a410511d6afa84cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ginacsympy-1.0.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9e980f97eb1ac8201f16aea398879868021fd5504873b0bf98e372c0baff14a7
MD5 cc8a6ded6ed5782db37780e7dcc23656
BLAKE2b-256 4c966e0192b892762e8a049a41d9f7afd268273e652117985a249a6587dbce50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ginacsympy-1.0.3-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.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c9c61bdaee52e7f4f79fbb7458ce03660fbf25507a29cdfcf596fe8b843ab66
MD5 8f6a8110355fdcfe862f5b4432f39b05
BLAKE2b-256 2c73f3964c317cbf8d10bcb4baade64ea7195e92685d62c097f2a913b0b9c05f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ginacsympy-1.0.3-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8e6387aa6a2a6f55ee3e1441685ca7aba2631b548fb4bbff9ffd86697c57424d
MD5 c262b86083f58c7cee53494bf209c7d0
BLAKE2b-256 4967934abe2d2b060f68ec265b4c2fcbbc4f13c062a8a87923809fc8ef6c99f8

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