Skip to main content

SciMatic

A Python library for mathematics, statistics, science, and scientific computing.

SciMatic is a lightweight, student-friendly Python library designed to make mathematical and scientific calculations easier to perform programmatically.

«From basic mathematics to advanced scientific concepts — all in Python(Include rust extension).»


Features

SciMatic is built around modular mathematical tools.

Mathematics

  • Quadratic equations
  • Quadratic inequalities
  • Factorials
  • Mathematical operators
  • PEMDAS/BODMAS expression evaluation
  • Custom mathematical functions

Statistics

  • Median
  • Quartiles
  • Deciles
  • Percentiles
  • Interpolation

Trigonometry

  • Law of Sines
  • Law of Cosines
  • Trigonometric calculations
  • Triangle-related mathematics

Parser

SciMatic includes a general-purpose parser for processing mathematical expressions and tokens.

The parser can split input into:

  • Characters
  • Words
  • Tokens

It can also convert recognized tokens into numerical values such as integers and floats.

Scientific Computing

SciMatic is designed to eventually expand beyond pure mathematics into scientific computing, including modules for:

  • Physics
  • Thermodynamics
  • Calculus
  • Engineering mathematics
  • Advanced scientific calculations

Computer Engineering

SciMatic also offers functions that are in the computer engineering field.

  • Logic Gates
  • 7-Segment Display system
  • Half/Full Adders
  • High-Performance signal flickers

Installation

Install SciMatic using pip:

pip install scimatic

Then import it in Python:

import scimatic

Quick Start

Basic calculations

import scimatic

print(scimatic.factorial(5))

Output:

120

Expression Parsing

SciMatic can be used to process mathematical expressions while respecting operator precedence.

For example:

equation = '2 + 3 * 4'

SciMatic evaluates multiplication before addition:

2 + (3 * 4)

Result:

14

SciMatic's expression system supports operators such as:

+
-
*
/
//
%
**

and parentheses.


Quadratics

SciMatic provides tools for solving quadratic equations.

For an equation such as:

x² + 5x + 6 = 0

SciMatic can determine its roots:

x = -2
x = -3

The quadratic module is designed to provide a convenient programmatic interface for algebraic calculations.


Statistics

SciMatic provides common statistical operations.

Example:

data = [10, 20, 20, 30, 40]

You can calculate values such as:

Mean
Median
Mode
Quartiles
Percentiles

SciMatic also supports interpolation-based statistical calculations.


Modular Architecture

SciMatic is designed as a modular library.

A simplified structure looks like:

SciMatic/
├── .github/workflows
|
├── .gitigore
|
├── Cargo.toml
|
├── pyproject.toml
|
├── README.md <- you are here
|
├── RULES.md
|
├──LICENSE
|
├── src/
|   └── lib.rs
|
└── scimatic/
    |
    ├── _pycache_/
    |
    ├── __init__.py
    |
    ├── convenient_utils.py
    |
    ├── c_engineering/
    |   ├── __init__.py
    |   ├── circuits.py
    |   ├── logic_gates.py
    |   ├── seg_7display.py
    |   └── signals.py
    |
    ├── mathematic/
    |   ├── __init__.py
    |   ├── algebra.py
    |   ├── errors.py
    |   ├── geometry.py
    |   ├── niche.py
    |   └── statistics.py
    │
    └── scientific/
        └── mechanics.py

This allows different areas of mathematics and science to remain separated while still being part of the same library.


Error Handling

SciMatic provides specialized exceptions for mathematical errors.

Examples include:

DataError
NegativeDiscriminantError
VariableError

These errors are intended to make invalid mathematical input easier to identify and handle.


Philosophy

SciMatic is designed around three principles:

Simple

Mathematical operations should be easy to understand and use.

Modular

Different mathematical disciplines should be separated into dedicated modules.

Extensible

SciMatic should be able to grow from a mathematics library into a broader scientific-computing ecosystem.


Development

SciMatic is currently under active development.

The project is intended to expand into areas such as:

  • Advanced calculus
  • Thermodynamics
  • Physics
  • Scientific simulations
  • More advanced statistics
  • Probability
  • Engineering mathematics
  • Scientific computing

Roadmap

Mathematics

  • Basic mathematical utilities
  • Expression parser
  • Operator handling
  • Quadratic calculations
  • Statistical utilities
  • Trigonometric utilities
  • More advanced calculus
  • More advanced algebra

Statistics

  • Mean
  • Median
  • Mode
  • Quartiles
  • Percentiles
  • Interpolation
  • Advanced statistical analysis

Science

  • Physics module
  • Thermodynamics
  • Scientific constants
  • Engineering calculations
  • Advanced scientific simulations

Computer Engineering

  • Logic Gates
  • Binary translation
  • 7-display
  • Circuitry

Future

  • Improved documentation
  • More comprehensive testing
  • Performance optimization
  • Expanded API
  • Educational examples
  • Possible integration of a ans history system with sqlite3

Contributing

Contributions, suggestions, and bug reports are welcome.

If you find a bug or have an idea for SciMatic, feel free to open an issue or submit a pull request.

When contributing, please try to keep new functionality modular and well documented.


License

SciMatic is distributed under its project license.

See the "LICENSE" file for the full license terms.


Author

SciMatic is an independently developed Python project focused on making mathematics and scientific computing accessible through code.


Support the Project

If you find SciMatic useful, consider giving the project a ⭐ on GitHub.

Every improvement, experiment, and contribution helps SciMatic grow.

SciMatic — Mathematics, engineered for Python.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

scimatic-1.31.2-cp314-cp314-win_amd64.whl (111.1 kB view details)

Uploaded CPython 3.14Windows x86-64

scimatic-1.31.2-cp314-cp314-manylinux_2_34_x86_64.whl (245.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

File details

Details for the file scimatic-1.31.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: scimatic-1.31.2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 111.1 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for scimatic-1.31.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 47e57a434451c115f09e09b1b2003fc2c0b8b7d04bc9ea14fcdd4b6f4e71ae93
MD5 c171ee737d0c61ca423259fa114f5b83
BLAKE2b-256 4086972e0382fce56abeef61fb03bed9a4a3639a19ab2966af23537d3325407a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scimatic-1.31.2-cp314-cp314-win_amd64.whl:

Publisher: python-publish.yml on bingchiliingsacker-dot/SciMatic

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

File details

Details for the file scimatic-1.31.2-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for scimatic-1.31.2-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e75327be51b9c7067ccbc5581f274a9e62ace1efefd79c17753be512eb27557a
MD5 88e2838fcf1d3144d89d813f14debbb0
BLAKE2b-256 c33c8c78c77afec85e3e5dd469e36106bc3be00a6219c8740025569c7838fec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for scimatic-1.31.2-cp314-cp314-manylinux_2_34_x86_64.whl:

Publisher: python-publish.yml on bingchiliingsacker-dot/SciMatic

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

Release history Release notifications | RSS feed

This release

1.31.2 This release

2 files

1.31.1

2 files

1.3.6

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.2.7

2 files

1.2.6

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.1

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page