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

Uploaded Source

Built Distributions

passagemath_giac-10.4.64-cp312-cp312-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_giac-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl (28.0 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_giac-10.4.64-cp311-cp311-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_giac-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_giac-10.4.64-cp310-cp310-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_giac-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_giac-10.4.64-cp39-cp39-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl (28.1 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

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

File metadata

  • Download URL: passagemath_giac-10.4.64.tar.gz
  • Upload date:
  • Size: 182.6 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.64.tar.gz
Algorithm Hash digest
SHA256 f9bcf6aab1e6221c374b7cf4dbbeaa4247eec07db09ba5725ad18fdfa8eed961
MD5 91dec2f4ab3928a0a1bee63c404657f4
BLAKE2b-256 a2c00ee567e45302ac441544102bda2a3c0053c450e26c3ccf93e875c6628aa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 43e9bd45444d95ab14eb2d40dc92ab8fe5a21788f68d39f1335ea1438a7b1323
MD5 2697a5fe1c1c3f5c07603c13d35e821c
BLAKE2b-256 05148fd9bb945ee44970e3b224ac255f0332c723078e7b5d89e0b7ca51ee9ba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8a8102ffbe115cafd0529cc09045413d68e444e72d436858a3a497342536acc5
MD5 2654424058fbbdcf9bb171adab2b2ad0
BLAKE2b-256 698f3415aa193f0ea547e8980ba9053fcc4b760e3875e451401e9fb40762605c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1b044ae1906a3f1eb1ace3cd34d24a684d81ce437f018e2ef0964069cd957181
MD5 b59b5cc06606e0af11d4abe33eb16b73
BLAKE2b-256 ec664e368b310ef6aeefced81d1531b78a31e7a34eb0aa34402065d2f6988bb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2ab40e8ca81accc227a1a56737da06dce7517838a940a7c964a7c7a4c3cae352
MD5 f1c93fe78815fc9a808b415d4a8555e7
BLAKE2b-256 54c2caa00b08ff5934413cf5ec133e5b428d756bf2cd9569d7735a0b0446459d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 10ee9bb95cd4299d4ab8a3d2c7f2a3c90f820bd40660b928d4b69a588b3cc4ec
MD5 ef90de9ae9673d4e6bc5973afad93cb5
BLAKE2b-256 b3e408e66c60ecbee883688a3ec869dab9ce52bea8146a15ba7ef3f4893d7b1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 61b125475491ceba46a14284bc181505ab0b0f6c3089253e8cfb84548bbec3ff
MD5 7d36cd732afbe6dfffbd09b0e0591c03
BLAKE2b-256 475d7db5bdcb2ca48db9a2772d35689784c851377c016651e3f0556b07fde01f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5b4c7eba87d9b1f5583f3b68e00bbdbb08f37b8236491f2fdf1556075f55809f
MD5 250455c4a2bbbca65aff99be219297a5
BLAKE2b-256 ebde2454b333924017f1fa1e1a8bea1834feb5ecacb2fc8a3b8c86342f761638

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0a7795ecaa538be24de1f2a42562f1a32d1e5b25e31a11836c602127a8e7b186
MD5 f2ec5357171daa74d9c62db36b7ab887
BLAKE2b-256 963f9a9c08b56c3227ba0cc004a934934e41b494a8299ee3c1cd0fd9578f1a2a

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