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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 macOS 14.0+ ARM64

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

Uploaded CPython 3.10 macOS 14.0+ ARM64

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

Uploaded CPython 3.9 macOS 14.0+ ARM64

passagemath_symbolics-10.4.61-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.61.tar.gz.

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61.tar.gz
Algorithm Hash digest
SHA256 10ffa465f93c86202c446a83bed93a603cbea24422e68734c79e4586b4777c19
MD5 a8f6ab9d7c5af9cc6969560ea1b505d7
BLAKE2b-256 350d793109134687fb87b7d28e2516c05f5cb4c79b97f33e9528ee520e1290fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 579bcbdd437ef32e0941c5776535f894f7cfa10c6bd3e4a4151e38f376e641a7
MD5 50b621c9981040be22103edba91880a1
BLAKE2b-256 c897f0e9fdb972bc0573313541305ebafee886f40886a692f68befbae9015f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e28d6ee47f7ac91fb5e2f6b3638ac7dc7f0fbf76feb4c23c60fe5fd18b3fb638
MD5 79f580d9b6a8342a0631addfb30fb12a
BLAKE2b-256 8022dccf051cfe121e69faee127008e23bfdb22363ab8a065c91da74e4c011fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6b5f0cf9468123f23823d2b4a322943e416d22730aa2bd6dca61e0164072a2e3
MD5 2ea38fc8d4deb194326a955105b3c6ff
BLAKE2b-256 dfcd168dc71d00bfd5d7cf922570d7c01469ea9cbe7a6cfa1a3c5b422732ae21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8215de2e35ab922deffce78758ab17c6a5addfa3569ae328982f760fb82ceafa
MD5 c5c277fe95263f90c21906954a94a3aa
BLAKE2b-256 433629970b6fd01710fb85b5a031938a9ccfba5ac9b9368fef0a177b12c702c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4f1e135d9b4a46de156487f6248174a1e9cded8f58ade4bcc650c24b372c16c6
MD5 58fb30e874df18441c5ee07e25262395
BLAKE2b-256 a53143a79d89307b5dbbb34f667fa268d375565c53c2927e76766eea81a2c390

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6e0bb53bb68177eb86809c60aaa00869d6079583b702f701ea132188bbd5a09c
MD5 ff279f0d35e414f1ad3eaf6565f53a46
BLAKE2b-256 f3603f87b4d54fc265c9b7754bd9a6a15f1409876c723b2fa614c3b26e131af6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 235f8cfd7f43c33766164bbd559e707f396a75d94aa67aa9ba64416ff9ae115f
MD5 1ce2d3661b96f9773dd55fdec0223044
BLAKE2b-256 9da6c479faf6edcd731abd32208da65c984983b27550c46347459737a9bde6e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_symbolics-10.4.61-cp39-cp39-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 fe6a5567bb9ab10d9f5996c14cbb1744374c968d6937110979384771da9296ad
MD5 bbabd354cf9d10d93fe00b462589a4f1
BLAKE2b-256 55f9262d8a20e1f251e64382645ca47bc21aa2adbc2309742c23cfb6f64731e2

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