Skip to main content

passagemath: Symbolic computation with GIAC

Project description

About SageMath

“Creating a Viable Open Source Alternative to

Magma, Maple, Mathematica, and MATLAB”

Copyright (C) 2005-2024 The Sage Development Team

https://www.sagemath.org

SageMath fully supports all major Linux distributions, recent versions of macOS, and Windows (Windows Subsystem for Linux).

See https://doc.sagemath.org/html/en/installation/index.html for general installation instructions.

About this pip-installable distribution package

Giac/Xcas is a general purpose Computer algebra system by Bernard Parisse released under GPLv3. It has been developed since 2000 and is widely used: Giac/Xcas is the native CAS engine of the HP Prime calculators; the C++ kernel of the system, Giac, provides the CAS view of Geogebra.

This pip-installable source distribution passagemath-giac makes Giac available from Python and provides integration with the Sage Mathematical Software System.

What is included

Examples

A quick way to try it out interactively:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-giac[test]" ipython

In [1]: from sage.all__sagemath_giac import *

In [2]: x = libgiac('x')

In [3]: V = [[x[i]**j for i in range(8)] for j in range(8)]

In [4]: libgiac(V).dim()
Out[4]: [8,8]

In [5]: libgiac.det_minor(V).factor()
Out[5]: (x[6]-(x[7]))*(x[5]-(x[7]))*(x[5]-(x[6]))*(x[4]-(x[7]))*(x[4]-(x[6]))*(x[4]-(x[5]))*(x[3]-(x[7]))*(x[3]-(x[6]))*(x[3]-(x[5]))*(x[3]-(x[4]))*(x[2]-(x[7]))*(x[2]-(x[6]))*(x[2]-(x[5]))*(x[2]-(x[4]))*(x[2]-(x[3]))*(x[1]-(x[7]))*(x[1]-(x[6]))*(x[1]-(x[5]))*(x[1]-(x[4]))*(x[1]-(x[3]))*(x[1]-(x[2]))*(x[0]-(x[7]))*(x[0]-(x[6]))*(x[0]-(x[5]))*(x[0]-(x[4]))*(x[0]-(x[3]))*(x[0]-(x[2]))*(x[0]-(x[1]))

In [6]: (x+5)**(1/3)        # note here 1/3 is done in Python before being sent to Giac
Out[6]: (x+5)^0.333333333333

In [7]: (x+5)**QQ('1/3')    # using Sage rationals
Out[7]: (x+5)^(1/3)

In [8]: from fractions import Fraction  # using Python rationals

In [9]: (x+5)**Fraction(1,3)
Out[9]: (x+5)^(1/3)

The last example again, using the Sage REPL:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-giac[test]" sage
Warning: sage.all is not available; this is a limited REPL.

sage: from sage.all__sagemath_giac import *

sage: x = libgiac('x')

sage: (x+5)^(1/3)           # the Sage preparser translates this to (x+5)**QQ('1/3')
(x+5)^(1/3)

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

passagemath_giac-10.4.58.tar.gz (182.5 kB view details)

Uploaded Source

Built Distributions

passagemath_giac-10.4.58-cp312-cp312-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_giac-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl (33.3 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_giac-10.4.58-cp311-cp311-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_giac-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl (33.4 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_giac-10.4.58-cp310-cp310-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_giac-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl (33.4 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_giac-10.4.58-cp39-cp39-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl (33.4 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_giac-10.4.58.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.58.tar.gz
  • Upload date:
  • Size: 182.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for passagemath_giac-10.4.58.tar.gz
Algorithm Hash digest
SHA256 e75327622b1746b1fd5990e7fe777649706fd17bc8ced3ba408df3e2da6a056b
MD5 953a94f5a66a136e0332392cd00f0261
BLAKE2b-256 a295cedba4e8d66a831f2adea06de3c7fe62665b02e6747b2ac59bcb203b5422

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 04f38c0fa82375c8536d47e425e8c7154a8b9a6655f0b0e8c91d3795e045e1d9
MD5 36fb7a0d57c2b824c360cab54df7a21e
BLAKE2b-256 2d4dee2d64058e98595b19bd000784870886bf90b5aeb979e53822901b747d6d

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8c29865148a79958620ba4554e2ab5b569b720bd730c893a35f4bf004212b6fc
MD5 f24ccfc10a8488aa536bd83ca948cdf5
BLAKE2b-256 445bea2841b0853fef251517ff895b7ffee8af5e144eddd05fa338f401dc26c1

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1f81284e8d2c999cceadcd98a82dd999ea8b655909680b35b1599aa7d974fc5d
MD5 e67e048dca122dff01d03f1f00464986
BLAKE2b-256 8f004721c5c3bc8e9fecd234bb5222db283ec23e07bd45d46f515163653c7bc2

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a35d2c1da0e5ab631f22becf744b8044032d4700a77c06bd5f602df5841325d1
MD5 60bc127d452c87ef89ddd74cfebe68b5
BLAKE2b-256 e07221e8e79e18cdd47eb07c36a5a87b083a6ffbf2bcaa38fa6032ece385881e

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 48ecc4212851608f6521a41368322654b3744582c7cb4a70d4989cedba7b87a2
MD5 5fa8b4a382479676dd2ca30667127a68
BLAKE2b-256 f1a2105756585ad4c5b4855b2e04094c5c9beba09c13b42e6d5bca1c642467fe

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 624f276ba409f80737c38701c1427a4f8f33ad3daa8b157baa321fc147440b20
MD5 93666f97666a4de2b19b9bccdb7a4419
BLAKE2b-256 1d16d504587ccb7002436f3d0d7ebafced1eb8eaebae6895b36e57dea712ff19

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0f81b43bceb609c997ef6debc9c2c1ff99ada6f5e6d011658013044a19c4a957
MD5 6086cc06f2041a92c4ff7af7b8cd6e1c
BLAKE2b-256 d0f72ccd228698485fae9395c00dac9daeaa1e053e53fed73e374049d0153f5a

See more details on using hashes here.

File details

Details for the file passagemath_giac-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_giac-10.4.58-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 af35bbdf55ffd02e028746044dc0ea0b0e00eb7b53b5b93bca84ac69b441c878
MD5 24cad52e98966f8c855852871f3b9222
BLAKE2b-256 dc0d3971f7cfc19c179370d61fb000844b296d20d54dd034d6d4be2466dfb155

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page