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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

passagemath_symbolics-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl (64.2 MB view details)

Uploaded CPython 3.10 macOS 13.0+ x86-64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60.tar.gz
Algorithm Hash digest
SHA256 6120d1752239f12ed5136cf0793a42f80b395e7a9b27633f6985b8153acc6ca5
MD5 5d2e2fd1beb658af80598b96b66580c1
BLAKE2b-256 05f46afbcc501912cf1493856f0aae97fd7cdfd53a21d0192e5cec6ad1d71a22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0de85678e349cfcd6391ae605821e90c0dcf834ce2e792505df44833bdb63559
MD5 8ea30847fc5dbd928e0119c16a97ec34
BLAKE2b-256 023ff22c38f60dd5542ab704a0de5bb8fbbc7006d745bb1f6b69db7557653d5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4c342ab0a939755f0401684674c7569099da43a52ceb95839fc6abca90b01118
MD5 c83085e4437eb3b259cf6d4f368af561
BLAKE2b-256 15055c0c7e91b7602a6981b1f07d0cf4c5e4f20ac3092c2fc635c7d3e2a141f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 98366615d605348c17688af6de70a57082568cea7206551c7b09f2516a679b4d
MD5 fd17cb3034df76a9957d3334b87a20de
BLAKE2b-256 16514364f1d72544c86ceca4cc69d24fbeb0954aca0fd40150bb34802d8f4387

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3ca0dd98fe11286c826554c2043978ca6f88b7a9d83ce671c70c57414087c6bd
MD5 9202ebaa45f6ff02ccc7403052687bad
BLAKE2b-256 9f0d619c4dcf11ea4ada2d381316edfbfa216e4ba956dc73b80d616a4ad7a4c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8b58839e0f1ea634d5bb36ba8a6aaf56ed06c612a12e1ecd7de8e85556b6c8f0
MD5 0360463fe5bb35a72d7099f65f6d2289
BLAKE2b-256 f21b31e6f69c131d3e850f0bcc404e82d49e584ce29e86f9de869ada22641b84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 54434a84c8045a9ea128219e4bab070360068c2a1a005c89b68753232c5a5350
MD5 5e463b81706c931bf2058de320939ccf
BLAKE2b-256 873e9a4152a9d843006ac097e85547a04e785eec7f90e12421b94d2931546e93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 58efbb4b3e8e105b9fd44d17ab9f364dd34e9371329aaff83bf03e2ec3768a3b
MD5 bec692b4f39732a182ba43808ccb41f4
BLAKE2b-256 1eb98f15cc5284d15ff0370bc2d3dcf2f0d6c903f64c3b2a90dd6459253fca24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.60-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8207626c4ded6249329841af511ad3f3d5d2a374579691c503fcda0dc807f142
MD5 4af0cc768a2ff423d1217e884170f1c1
BLAKE2b-256 1b12d5d734672bac5bbb7cce1b97d56259c70d0bc2474bdc0efedeab3e3015f9

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