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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_giac-10.4.57-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.57.tar.gz.

File metadata

  • Download URL: passagemath_giac-10.4.57.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.57.tar.gz
Algorithm Hash digest
SHA256 b3e195b43b01502f0b25e92732911dbf1925408c580c9dd64aad68701910097a
MD5 702bf66bc9b0729e0b11ed728e3c480b
BLAKE2b-256 60f04b10986f9efd63ad088d7839c2f72a677e40ffa8d7da997b07878acf0c6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 11607d59c3e8ed025be67f8ed20bbcbeae3ed4ce2a5de1ea0638aa34552b4636
MD5 d52f6748f9746536de89320cb6c74800
BLAKE2b-256 1cdeac6a131607bc1c3b4a00ef7174b0b1776f3f27b8e1cd6737f437afdb631c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8f3ca489f8333875b1a1acc965b716616a5cd652126d4247d616b5bca111b196
MD5 1e0d78c85d425c6b51b008bf8cae08bb
BLAKE2b-256 da4cf35f9e8c785852b7b7c186ab8488d75b743927f0b08a86028d8bbaa641f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c920bd2e4b50ff9153135bc106b7e609f02c7293b0fd0e8dcdf11a8af5a095f5
MD5 feb1f89b3f49d575b8ef6ce298e4465a
BLAKE2b-256 29c7692a2b0a89c04c5f999ed1ae9187b52fd692ccd60336ec288771d02f27d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a6e876f3f37256b53680409839fa2706eb87b52c9a1f1bbb7d8ec7c8267f3339
MD5 49899fbb8dd81fb7dcfff1417c959b32
BLAKE2b-256 8b304a2db7dc70c96898e1857d55f24ff27276c6e763ca455c41f3e38b7556ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 87e21c734074ffee10b93259227f378bd6881ee134581e66a84df915224888cb
MD5 51fadaa85117d21d4c382709faeee1cb
BLAKE2b-256 85c7f55c897c0f9e853ba353946a998efaff3b4f9f58f2ade08edf79b6a520ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 baff21607b3da120957ef3d5512746930aae554acd8d5ac02033508feb8a963d
MD5 3096bb29649565070402cbcafe0e434c
BLAKE2b-256 c0902de99baaf30b3be0ddbb900387e29008a85fe04b9d1a7753f9568fd6fbbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1489e08c883892121a64fd13f351df047646cafbcfcf237392ba4bcfb05732f3
MD5 540ed97857b075be9c5f495320345c47
BLAKE2b-256 f14564cac6ce05db58d5b0412c8ca84c9080a91016327c0163e71df9fec39d00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_giac-10.4.57-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a2fc5558c2b040529247d24bdac43a10971c94a94f45b4747d6f3e5efa108a31
MD5 e6e50a8e869969f594862f54e00dcbe2
BLAKE2b-256 c5cbe39e8f9d720e44d32afbae98836fb421bd0fa4f3445bddf9c7ff4713e5fe

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