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.59.tar.gz (182.5 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_giac-10.4.59-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.59-cp311-cp311-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_giac-10.4.59-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.59-cp310-cp310-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_giac-10.4.59-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.59-cp39-cp39-macosx_14_0_arm64.whl (30.0 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.59-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.59.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.59.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.59.tar.gz
Algorithm Hash digest
SHA256 149bd66959f3dd83bb9d5c1de55331c4a83cd8b4eaf6d33eb34f6c3f49f9a99f
MD5 b4cb3c9a150d67bce1396d022c702656
BLAKE2b-256 db9e8ef1245bc6611fc7ce917381df9afa7b3e5c9c69d5de2db811e15791c7d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3e076fc898874c78d32bc3ece0bfd06d16f1e4a1bdd651f09d0443ba6470f72e
MD5 1ba6d0be1b3ed018ad2b6fe7f0d13700
BLAKE2b-256 96847dc80ea365ad8ca69ed33c523b956c4eb4761be83d8b8e0eab3cbfe1c619

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8c185a7516c5bca7992c276769b154e27ec203a27966922ecbc8448f238eb434
MD5 82d3e1af432499147269dccbf9f69b1e
BLAKE2b-256 95145d704e5d1beba171b4dbdaf8599221be3d2974d7d26f3b3d12b533bedcb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 cd134d9d36745da4f3c8002565dd92fc58e627dd781b9e24c0a2c672c7cdfab3
MD5 066286afc2bf5f2b3e23e6bde676d9a1
BLAKE2b-256 ac57cea85cca1e1c8c890b8b2f803bb0f0139b1c1fa7daf3b8af464137cb99c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c79d2a130a7138aa2d57e4f525fcb25a6695c1041b359d75d118184789ec4f14
MD5 7ace36b25c65a29537efc0e7e3a5c8a9
BLAKE2b-256 ec93117255ebdf06cb349c14f2c6b6977da6292d6c3f5bee6daca44242b04774

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 96695b3d2ba0dae86abc50956733771aa1bb0d2aeb9f8079583b008c245dce7a
MD5 ac848d434aa7e36162d376690f3069fd
BLAKE2b-256 04db3600ab5a6bfc4a8b79356d416593b66d76e5aa31267667a8dd4878b9ded0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c851afa8d60fe9d3c8f2eb0a60e1b2588441b3656f7bc32f2d4a6bbb713379ad
MD5 ad45f2f1c058f10af4ea3b5b930b4e51
BLAKE2b-256 eee5b231fe2c1e8e8340adecc6a4953de67242b5fc97c9da183d49f3e046d41a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 164ec7bc30fc4e38bf81c3a32847b4eddd5e43a8a795037712dca9e0815a0c70
MD5 244aee45d3c18385a4e291f6868ad8de
BLAKE2b-256 4728555ffd19c911f3b5b7032ea6a33fb39832ad91c2ccd0e857971944604431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.59-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f5284df6c8d7e173f173545a151e2e81caf4300af1a6dede8f14d3f8bfcbc314
MD5 8b23205c052984921d9b77314e4720f4
BLAKE2b-256 c3ece36ef5372d8aeb81b6b6b35da7c0ab4810064cea3e78e5f5f4dce56547db

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