Skip to main content

A Symbolic Computer Algebra System

Project description

Lispium

A Symbolic Computer Algebra System written in Zig.

Installation

pip install lispium

Or with uv:

uv pip install lispium

Usage

After installation, the lispium command is available:

# Start the REPL
lispium repl

# Run a file
lispium run script.lspm

# Show version
lispium --version

# Show help
lispium --help

Features

  • Symbolic Computation: Work with symbolic expressions and variables
  • Calculus: Differentiation, integration, Taylor series, limits
  • Linear Algebra: Matrices, determinants, eigenvalues, linear systems
  • Algebra: Polynomial operations, equation solving, factoring
  • Number Theory: Prime testing, factorization, modular arithmetic
  • And much more: Complex numbers, vectors, statistics, plotting

Example

; Differentiate x^3
(diff (^ x 3) x)  ; => (* 3 (^ x 2))

; Solve quadratic equation
(solve (- (^ x 2) 4) x)  ; => {2, -2}

; Matrix determinant
(det (matrix (1 2) (3 4)))  ; => -2

Documentation

See the GitHub repository for full documentation.

License

MIT

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

lispium-0.6.1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lispium-0.6.1-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file lispium-0.6.1.tar.gz.

File metadata

  • Download URL: lispium-0.6.1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lispium-0.6.1.tar.gz
Algorithm Hash digest
SHA256 f1bdcfbb88fec4773a5dd898a8ca6e5d01ebd67bbb8ea26e0cbded70c7a937d7
MD5 a7c2c49ccf2630b2e26f607bbfe4d0c7
BLAKE2b-256 c2225136625b9682016462052b509be4ed25e2bfeb7bb87a1f362ff59daa3fcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for lispium-0.6.1.tar.gz:

Publisher: pypi.yml on Tetraslam/lispium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lispium-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: lispium-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lispium-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d739e9cd44b23e8f34074359a30a56614f49f80a3e7c9c0b2411251299ae58cc
MD5 680e34bfecf91b386d4751b098750ae1
BLAKE2b-256 c76dad4d7379575682ff86c88b83ab982d4e824e3d6698d997d1cd8fe2ea3fb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lispium-0.6.1-py3-none-any.whl:

Publisher: pypi.yml on Tetraslam/lispium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page