Skip to main content

passagemath: Symbolic calculus

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

This pip-installable distribution passagemath-symbolics is a distribution of a part of the Sage Library. It provides a small subset of the modules of the Sage library (“sagelib”, passagemath-standard).

What is included

Examples

Starting Maxima from the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-symbolics" sage -maxima

Using the pexpect interface to Maxima:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-symbolics[test]" ipython

In [1]: from sage.interfaces.maxima import maxima

In [2]: maxima('1+1')
Out[2]: 2

Using the library interface to Maxima:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-symbolics[test]" ipython

In [1]: from sage.interfaces.maxima_lib import maxima_lib

In [2]: F = maxima_lib('x^5 - y^5').factor()

In [3]: F.display2d()
Out[3]:
                           4      3    2  2    3      4
               - (y - x) (y  + x y  + x  y  + x  y + x )

Using SageManifolds:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-symbolics[test]" ipython

In [1]: from sage.all__sagemath_symbolics import *

In [2]: M = Manifold(4, 'M', structure='Lorentzian'); M
Out[2]: 4-dimensional Lorentzian manifold M

In [3]: X = M.chart(r"t r:(0,+oo) th:(0,pi):\theta ph:(0,2*pi):\phi")

In [4]: t,r,th,ph = X[:]; m = var('m'); assume(m>=0)

In [5]: g = M.metric(); g[0,0] = -(1-2*m/r); g[1,1] = 1/(1-2*m/r); g[2,2] = r**2; g[3,3] = (r*sin(th))**2; g.display()
Out[5]: g = (2*m/r - 1) dt⊗dt - 1/(2*m/r - 1) dr⊗dr + r^2 dth⊗dth + r^2*sin(th)^2 dph⊗dph

In [6]: g.christoffel_symbols_display()
Out[6]:
Gam^t_t,r = -m/(2*m*r - r^2)
Gam^r_t,t = -(2*m^2 - m*r)/r^3
Gam^r_r,r = m/(2*m*r - r^2)
Gam^r_th,th = 2*m - r
Gam^r_ph,ph = (2*m - r)*sin(th)^2
Gam^th_r,th = 1/r
Gam^th_ph,ph = -cos(th)*sin(th)
Gam^ph_r,ph = 1/r
Gam^ph_th,ph = cos(th)/sin(th)

Available as extras, from other distributions

pip install “passagemath-symbolics[giac]”

Computer algebra system Giac, via passagemath-giac

pip install “passagemath-symbolics[primecount]”

Prime counting function implementation primecount, via primecountpy

pip install “passagemath-symbolics[sympy]”

Python library for symbolic mathematics / computer algebra system SymPy

pip install “passagemath-symbolics[plot]”

Plotting facilities

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_symbolics-10.4.62.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

passagemath_symbolics-10.4.62-cp312-cp312-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_symbolics-10.4.62-cp312-cp312-macosx_13_0_x86_64.whl (64.3 MB view details)

Uploaded CPython 3.12 macOS 13.0+ x86-64

passagemath_symbolics-10.4.62-cp311-cp311-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_symbolics-10.4.62-cp311-cp311-macosx_13_0_x86_64.whl (64.2 MB view details)

Uploaded CPython 3.11 macOS 13.0+ x86-64

passagemath_symbolics-10.4.62-cp310-cp310-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_symbolics-10.4.62-cp310-cp310-macosx_13_0_x86_64.whl (64.3 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

passagemath_symbolics-10.4.62-cp39-cp39-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_symbolics-10.4.62-cp39-cp39-macosx_13_0_x86_64.whl (64.3 MB view details)

Uploaded CPython 3.9 macOS 13.0+ x86-64

File details

Details for the file passagemath_symbolics-10.4.62.tar.gz.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62.tar.gz
Algorithm Hash digest
SHA256 d3eeca5b726c593e2c171dac118e6ad86c3408cb2e546b8a005c93a5549dad89
MD5 9aeb14cc80629c857f58b1946ad95841
BLAKE2b-256 12e2190340764f8e45a2d7248772349da8f90d6a6924c24a0978939d89a4f9a5

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0b349cfd64e5a9cffd95060bec52882a5c7fd58bbab6cc4643989016aa6f30dc
MD5 63425de8d0c58f9985e487dc3d77bb2b
BLAKE2b-256 0b75bb9819688add91a55c2f7dc86f0bc26fc454dc3434a5a9e84943bcbdef6e

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 33fd984c074752eb1583d8f874250d76550ecd81be93cacd216b65b7bd323ccc
MD5 764022bb565f71bfc75ded29ee8bb849
BLAKE2b-256 918ff1252b693b7133543b822d99fb9506895143444d838fb8c070c808a96e78

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3627f632c4bc046e404fd380038b0f4e8cdc042636e320a5d837a9c512974ff6
MD5 7b034dd4f0d68e856cc41e7b83888553
BLAKE2b-256 7f2938360cb184e00790cfeba40508c4e20c5443cc7a29c6fe568667a03af2c7

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d77c79305da091844c5495b1a26295dcce96e01b6acf2f917a3be5db6d41e7c9
MD5 4a5ea04761b13abc4ccb987bfbe69b9b
BLAKE2b-256 ed38f7def55f4ca47be8a349450539dc5edeef0b5ba74831422e57efdd8dadd9

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1f6c412d4c3397f203bd339f6bb4f8e39b065408e1b9ce4d863f537f59dd16c1
MD5 999dfcff216727381c3a759361b7f9fe
BLAKE2b-256 b0467bad551cd01a76280be5ab6a16b7d368fe2f7f2d92999458cfb46a5f5b55

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 da9cdc481efc032706713c929ed71eac516af1376ef0995e80924fdedbab1819
MD5 4dbba279632c78ea409869c329a3fd1b
BLAKE2b-256 24ba89feae89746998d5a139b6dbfe15cb0168504b9225acb0c073baf0db6462

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 09060cb04bea5b819099fcc9f3815d1ae3a0abb10cb9b551952b911079f5bb2f
MD5 e93275e4341379cdd8b16df259d8e288
BLAKE2b-256 d0e0687f32c57cbc29c174298669e4fb5d89b1581c45e70483c41854dbffd9b2

See more details on using hashes here.

File details

Details for the file passagemath_symbolics-10.4.62-cp39-cp39-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.62-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2243588bfb9fa0ac5d0e4b445f46655df90587d3b6d9c6a40be70fa9a8454959
MD5 f72931e4062ee1d08c81f65b28d33870
BLAKE2b-256 121b0fa0f2b9fd510e457840a3018104941c8cae74ba52e46ad086ae112988d3

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