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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.60-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.60.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.60.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.60.tar.gz
Algorithm Hash digest
SHA256 f9f440e329b228aa6b94d9cbffd50e407e45af804017034c02a1b775226362bc
MD5 603eceb20be5a99825b1e3b27d809f11
BLAKE2b-256 dccbabfa8020964898b99b36c8e2620539b247ac657117fa120b3a2c8076c110

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 da39b5540fdc5050eaca3c8c878e15828ddebb3ed649c3e3c84c874d0b26fca6
MD5 e99abcf11c29c375957e199e13b22f52
BLAKE2b-256 53ec8a449bfb9e29f77ac2912309d771c21cffcac76535fd1224bb5aae704f04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0154a1431ecd6cc5b7bac3a7cce2cee46de64e88626ce2a4c2bf0988a10f3183
MD5 6deccdd738b07f7a213b4fe748ca6c79
BLAKE2b-256 97b963aab077e65a1df61b7f580891c6465c659e9003fe26e2916b58c7fccedf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bd23a0cf43d76e2d39e1442441ab369858afdb2448b938ac4dc6878674899b27
MD5 06565f52f182bf52f70d8c039d963bb5
BLAKE2b-256 b0fdd00fa119830591a8f7add7ff1fa9a1327224be81c1db5f2487f94f022f17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0822cbdf208b91a49b5c9e0f00a27cbd7dbc786b7f3a4ba67da7cfe3b7e1d047
MD5 bb4e50210b5d12ac53b75494662e0701
BLAKE2b-256 4f73d45d5ee855cea655ab1f8afd2be4ad2ae2e68787f12891144d93865d272f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 794db1584ce04a5923e56dc896ceeb31b46ccc78dd6296ffcd84055feb037551
MD5 9a9830d724cafa49e3ca25c605b75890
BLAKE2b-256 9531b6745059fb4992cf0ea12779f9838e0a63bd927504b09594813365001acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4b27290e2ed8429c90931a75c5b90463058afaab2ca3ead9a64e84b7a158219c
MD5 6ce929e7a4d903c752275b042517558f
BLAKE2b-256 ac33a46cfd7f469b4ae50a4442c49f61b8a955b2a98a8e21e926009a2a4c951f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 97e535ee9dd4052ffe8dd179cbdcd2510773147f41578a60db3a296784e568ba
MD5 d60ae5efb7886a0184f5159e1004ba1a
BLAKE2b-256 d72c70e9eb6bb583dbe22f461df87c720560a07be1d4ab7653dd45a9b250b392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8fb827077dea89350e3653b7fb69b5d8b7a6337ed253a81822998d99b88c284f
MD5 762d59cd09d75ab4565dee99a6bd1834
BLAKE2b-256 d094dcd3bf03d36dcf3484a52fd6bb9e7b145bea258d31a0dfe8ccbcc34a8cc8

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