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
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
Pynac (fork of GiNaC)
Arithmetic Functions, Elementary and Special Functions (via sagemath-categories)
SageManifolds: Topological, Differentiable, Pseudo-Riemannian, Poisson Manifolds
Binary wheels on PyPI contain prebuilt copies of Maxima and Embeddable Common Lisp
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file passagemath_symbolics-10.4.63.tar.gz
.
File metadata
- Download URL: passagemath_symbolics-10.4.63.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d904bde8458c9ee68175d2ae5a2f3828a0522fb0543275da2565cec49becd5 |
|
MD5 | 87a2cfc7aa04d0adc227609ff8af0c1f |
|
BLAKE2b-256 | 46f105f36022fc55cb91611d19718b1dc5cb0dcf779134c5fc4424c1b6721df0 |
File details
Details for the file passagemath_symbolics-10.4.63-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 65.2 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62087986313e51457e42130871b4b0f59c2f90bfc6616ca36ee86e6ffdaa4989 |
|
MD5 | 7f5eb4758c8b0f5c625e337d11f84807 |
|
BLAKE2b-256 | 51b2ccabb6ff61a5cdb9ff18cf1374641e351b9da22a786b129ecf2f89d875ce |
File details
Details for the file passagemath_symbolics-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 64.3 MB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0664c0f0d35a5017a6a564018ebf72aa8d6a545beb2e1b9467478a011aaf15ad |
|
MD5 | 43ceb6bc8322b5f04be2aedcc4384c72 |
|
BLAKE2b-256 | 041d5f9f41cb21542f149ff1fd70db59e3ef35049a3661c88d8a1b3463cf6889 |
File details
Details for the file passagemath_symbolics-10.4.63-cp311-cp311-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 65.2 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138fa64d485f4e9509a9d67327983469c39cf1c9a13eae410b6db2e9fc5f96b2 |
|
MD5 | fdeefb781e366a65d747f8a539e82975 |
|
BLAKE2b-256 | 14f895118764acbe4ce7386705cd38c4cae775fbdab9e13f4514d3e5370a80cc |
File details
Details for the file passagemath_symbolics-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 64.2 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd4228f0e65c18b2b67d5f2596b03d1185d65a290814a074c0856a244d13571 |
|
MD5 | f76b8cdab03406f52fb74dbefa76ef63 |
|
BLAKE2b-256 | 71547409724da15ec03f009abfe201f8c391bafec7cf60d4eea455b26cc934e9 |
File details
Details for the file passagemath_symbolics-10.4.63-cp310-cp310-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 65.2 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac7a7c6ee1aac76d4f74382f4c35996dc5f84f22c86aa2b914bd653a4b312b3 |
|
MD5 | 786ffa9f52fbdc36070625bed420045b |
|
BLAKE2b-256 | 763f7ac84a47b5fa0e91774cde381e26e6ff04ec22a2adec3c222b29461430a5 |
File details
Details for the file passagemath_symbolics-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp310-cp310-macosx_13_0_x86_64.whl
- Upload date:
- Size: 64.2 MB
- Tags: CPython 3.10, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c350e75001de43c626f37fd008c8081ab170372a581a888f24b1f0e02a77852f |
|
MD5 | eed01661b067ca29e08a8e985984fe15 |
|
BLAKE2b-256 | d894449119c30bb277c9573725ed9ca1bb207f2b7c69edd09b8936c8e1f99958 |
File details
Details for the file passagemath_symbolics-10.4.63-cp39-cp39-macosx_14_0_arm64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 65.2 MB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1c44ad22214c42f09898f12e27cd349b3c7cbed0a6ec3427c712689af272d0 |
|
MD5 | ad1c63034922cb30b95ac2bdf38e25b6 |
|
BLAKE2b-256 | ef62665f497734b3bff47b29f8fc7a5ed293c097ab445aa5eaa36e38beb70329 |
File details
Details for the file passagemath_symbolics-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: passagemath_symbolics-10.4.63-cp39-cp39-macosx_13_0_x86_64.whl
- Upload date:
- Size: 64.3 MB
- Tags: CPython 3.9, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13f2bd7e8b436670d6b395db62935d63a01ff3c9e7db395378c2fc877d9e204e |
|
MD5 | f0771ba55586c236def90bf7066b8fa9 |
|
BLAKE2b-256 | c9da334a423da79900be97c3596746882453621f3badd485d55262ae74692523 |