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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

passagemath_symbolics-10.4.64-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.64-cp311-cp311-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

passagemath_symbolics-10.4.64-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.64-cp310-cp310-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_symbolics-10.4.64-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.64-cp39-cp39-macosx_14_0_arm64.whl (65.2 MB view details)

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_symbolics-10.4.64-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.64.tar.gz.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64.tar.gz
Algorithm Hash digest
SHA256 f162bc5156eaa2e4e98fec2ac9d8b6e8d7cb5f370bc1687b853552750c4f8002
MD5 21441fe4bb950521f8b5b0c453630523
BLAKE2b-256 2d64c17adaa82cfd19801d8b2b9ec28fb5bd49ee659ed8458cefd3e42b6ff6b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f2e9398821775d2cd2bce3a77d497df437b0c57443a3cb748a2e6cfa3a31621b
MD5 4e05b2e4c575ade2d4b8543f44400990
BLAKE2b-256 6fbaa1546f1db417c234a5bf2e2b2a50b664dc211809cbbdc8826a0c7618252c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 749fe27f30b4c7c6b2a2a4d3a8aed92e289b596ce2725873135c60f3e8fc47c0
MD5 12022d813ab4b65c2ab84d9e12754252
BLAKE2b-256 0932b1dd0a2598376578c63c766be67f8df288e3d6b118ed666b97e5c3e5c745

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e5b6a85a722c251f096c975b170ef3af3b0489fbd034266958efb08e2c5e7030
MD5 f9f65ce9fab9ae868e712424a26e90d8
BLAKE2b-256 9855fbe451478b0e01fcdc4ba47951618fddff8c5173b61389c8485f2fa5fcfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c57e23f1399dfcda1623f03f17f7827dad1247698ab96e45ea091d123e5eb8b9
MD5 ffebea23395ec1509c9b8c39ccde5c1b
BLAKE2b-256 e625de094c57d7c47dd0d3a0afa851fce790a1742df50cd57e7221b4de75cd1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a208141ceae010d51cfc5771f55baacf6f68263f7ad94a461e814c2e6c0e2136
MD5 6f05ef561f515b2715c7f7de430f47d4
BLAKE2b-256 4c036836c17759359823df7fc5bbe6c37763b38a44211634d0e1a5b3b2cbec9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 59173db67840ad83faf8a412cac6236648aadd3e5f7315ae986d95c1af598c99
MD5 6eadad1dd01074d18ffdf309a964d966
BLAKE2b-256 428cf50d79d48e498c9cd6fa7fce7edd9700f7693003ab2236584d15b0e4088e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 69f1078d1f60d2d4ce488b6cb9ba83ea93eca55ab2c008137fa4895491c4b6fd
MD5 10dba048aaacd1084d2a82a888463313
BLAKE2b-256 4b73855e4750c2853d5a9c1299eee791feaea050f5897fb65d9596636002c801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.64-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 03c397c2d71967291b1cd3abed7c3c81f1021d5a5b17dde23f38137581104c5e
MD5 0f896957e72dd07d749c2e3982fadbd9
BLAKE2b-256 a40412a3437f44bf49f5cde482218e74ffaaf2adfc872094f1b6c59b2a9f052a

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