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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_giac-10.4.61-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.61-cp311-cp311-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_giac-10.4.61-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.61-cp310-cp310-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_giac-10.4.61-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.61-cp39-cp39-macosx_14_0_arm64.whl (25.5 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.61-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.61.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.61.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.61.tar.gz
Algorithm Hash digest
SHA256 d2631d8d263ed85d31b4db8bda96d99e41e81cd91a4c2bc670c4dd4a2682dc54
MD5 2e9f883cecdad640899a6f78dc80f9c6
BLAKE2b-256 bab4c3638cdccb1d9b9adb4ef1dae715e66c48e6dbac0ae73406a78f161e5d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bfa149f044bddd5cefdc1f06d3d5da581f4020fcea4cd3d05997db4de8914d3f
MD5 1d037a4e896bebdb116921d887177983
BLAKE2b-256 d64423ce2cc4f0235a5231e77add2f6b0998beceb5acaf827b8492f4868c2e76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 987d358a6f1db86cdebb190803b8da5ada96f3fb91e9fa695fd93afbeb7f0b38
MD5 4c9a2de42b08edcd627f28cabd2d7ab9
BLAKE2b-256 bbadbedbee93a3adde7cc8226b23eb2d328fcf78da0899f7098f8c9e98d01b68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c4852ecbee759af4f32016b79c2b808549193ca4491e9f02bc6927aaecfa3a35
MD5 5a2beed9763ecc1fb68b3896d73429cc
BLAKE2b-256 7f2ea637f68ed768468b649f6d6b9366a11ad8c3daea5acc8ad4ffd7984e27d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a5f045129e270c31ca67cb25c8d784da05bd02fbfcc301e38842ff9889fd664f
MD5 516139669a45a8883b858d1f7e8155fe
BLAKE2b-256 2c4d20c9e81e3109320180937a529c005c8d1a00fff737eee311e29c1bd41bc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 26ec4b9d2984ea6d61123a01701d442eee9f970209cdf9e0099e3f8f9a3d21b7
MD5 2bb1f77a50cdef87117381aa946fcb59
BLAKE2b-256 583c00d610101213265b4097a18d9027539a695a87c2628aff41ec63aeb9c4e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 080cd777572a68813592a3be046f9e3e592f7a0a450350b0ae320b1fac2b693e
MD5 b13410077a57b1ee8a8b64877f66d7dc
BLAKE2b-256 6ffaa9c87716fbc820f25eaca6ac72943cbda1fafc025951b7746a7f0b78e3e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6d4a11ec17b331afe163d463656542a32912d2ad6eca8eabc590880b4b435028
MD5 1642788262ba72762abebb4cfcf4d6da
BLAKE2b-256 b42e69479708246c6f980b2b9d9f32f74557a66f704a1719606887df7c0c8949

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.61-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 611e412c8f3335a7ff4ccad63cd1c8885e87ef5d610d52ea97c0237839dff41b
MD5 1c317991ee8baf75ffb9480e8028a6c3
BLAKE2b-256 613c36e5d693dd1c0aa1d4f2ca304c4a8a5880f07462ad2b82eba3a37ab480cb

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