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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.63-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.63.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.63.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.63.tar.gz
Algorithm Hash digest
SHA256 8a1b4aea75d2fac570a6d345d44af834f687fb1dfe75d383c4f0f1fd1e646c6c
MD5 bed509ef1f58beca64cf3bb3912298e9
BLAKE2b-256 d3f6867daf4e5f8dab7e600718885b5ec19d8871a24bca394c7e6b2c4e1b1e2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6a27276c383c813316418a98c49c15f87e2a36044c288e3aecaa4cdfdc80750a
MD5 f42c616d50873c87c9bf258445221c14
BLAKE2b-256 268d1d9a87fff35e98323d9790c722c1db4e1d1a0029281ec52affaf06d0c45f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e28abaf1263d333684440ab0b33a53d70c6179d0d72f87d1c9efa79f9438e0c0
MD5 24faa961a5434c5b6b5c0d15519da262
BLAKE2b-256 bef3539485e5613cce1a601c73b5e33a6acbf1d4d89188088b807a84064bd075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 66ac2e57aeef2e7e289211b340207b93eea8bfa311faed2e4df0c92f81d2fe19
MD5 ab9e0595c68ac9a3f5ff30d2bb31b51c
BLAKE2b-256 6e3e1b35443412b5728d59c2f22d861ea218271f06222b075d20d12cabb6d5aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 71212c11dbd79c583abbf6a0704bd10e59fd105bab0108b6d5c260d6d790af1a
MD5 8b48430f6a40dbe69b301e121c036a48
BLAKE2b-256 89fb20053a9bf3201aed707d3c2d840a8c9af3a4d2abe758ee1e4e70e4d633de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1def022cc8295a55ace83cb59a607af6610c87a314acdeb25c4d6774920cff8b
MD5 7471559b041a2825b06934aaa6456146
BLAKE2b-256 608cb1d17f2a1a5c50f8456ca783427d2e4ec589a0194a4b8c0b4b12b461cf7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d2229d3fdd21b010c0327b578e19917254ebf5df064aae4a426b5ce2ea942139
MD5 bd51ce515154d5ba57c5a2298adfa16d
BLAKE2b-256 c5e522126e742ce70b16b94da58a791ba0c3d0813a0f1489963fb64a3544c822

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6e608ed81a0faf001811cb97fd4568e968c8a3587c87f532d5483c723a8d6a72
MD5 5110ad92c6eeb5c58281313121a4d734
BLAKE2b-256 fb9c2f5ea63762b179fe1a017c31e496617a161aacc1c71d33cc38b403e7e2b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6013adffb6c6effca80674b1464030e96df05d6b07903eeccba37c220855ba42
MD5 4c27f50403eff40981b13918e799b2eb
BLAKE2b-256 87d185cab6e5cfda9c33da55b66248880ac1c458cf0d1101d3a192d985bfb662

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