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.3.1.tar.gz (2.7 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.3.1-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lispium-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e43ab6c4de82dc98929cb9b755f5acafa31081f6a32868fdd0cfe76121fa4264
MD5 10532e556cb1be69981847060f54d8eb
BLAKE2b-256 1e25d70f26af95e4383f2a211f25f226cddfa12eabd84777f2b2ce488927652b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lispium-0.3.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.3.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lispium-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e454f710dbb6f29c72049ff6084e4e399e02a7de01fec8c8814ff87d5156fd62
MD5 ce7a9b30281733b44bc88991d7441542
BLAKE2b-256 34a6768ce9822c8af938d74df4ba6e1df976b52f9e7d32f225940aa213454418

See more details on using hashes here.

Provenance

The following attestation bundles were made for lispium-0.3.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