AxiomX
A lightweight, pure-Python mathematical engine with an interactive graphing system.
Description
AxiomX is a custom-built mathematics library designed to explore and implement core mathematical concepts from first principles — without relying on heavy external libraries like NumPy or Matplotlib.
It provides tools for:
- Fundamental mathematics
- Calculus operations
- Matrix manipulation
- Interactive graph plotting
Features
Core Mathematics
- Trigonometric functions (sin, cos, tan and their reciprocals) and their inverses.
- Hyperbolic functions (sinh, cosh, tanh and their reciprocals) and their inverses.
- Exponential and Logarithmic functions.
- Custom implementations (no external math engines).
Calculus
- Integration
- Summation
- Convergence detection
Constants
- π (pi)
- e (Euler's number)
- Square Roots of 2, 3 and 5
- Golden ratio, Silver ratio
- Metallic ratios
- Bernoulli numbers
- Stieltjes numbers
Find the Easter egg in AxiomX!
Matrix operations
- Matrix addition, subtraction, multiplication and division.
- Matrix inverse, rank and determinant.
Graphing
AxiomX is now having an advanced graphing system in AxiomX.graph. It now supports the following:
- Plotting multiple functions (without list)
- Improved anti-aliasing
- Supports resetting the zoom level
- Supports exporting graph in high resolution (using
PIL) - Dynamic grid, axis and graph lines
Installation
You can install it via PIP:
pip install AxiomX
Or install it using the wheel file in the downloads section.
Quick Start
Basic Usage
import AxiomX.trig as t
import AxiomX.constants as c
print(t.sin(c.pi / 2)) # prints 1.0
print(t.cos(c.pi)) # prints -1.0
Plot a Graph
from AxiomX.graph import plot
plot(lambda x:x**3) # plots graph of x³
Plot multiple functions in one graph
from AxiomX.graph import plot
from AxiomX.trig import *
plot(lambda x: sin(x)**2, lambda y: cos(y)**2, lambda z: 1) # explanation for sin²x + cos²x = 1
Graph Controls
- Arrow keys - panning around the graph
- Page Up - Zoom out
- Page Down - Zoom in
- Spacebar - reset zoom to 100%
Project Structure:
AxiomX/
│
├── calculus.py # Differentiation, integration
├── constants.py # Mathematical constants
├── exp.py # Exponentials and logs
├── functions.py # General math utilities
├── graph.py # Interactive graphing engine
├── hyperbolic.py # Hyperbolic functions
├── matrix.py # Matrix operations
├── sqrt_2.py # √2 expansion (special module)
├── trig.py # Trigonometric functions
└── __init__.py
Note
This library is designed for mathematical and educational purposes. It is NOT intended to replace high-performance libraries like NumPy or SciPy.
Version
0.1.41421 (that's √2!)
Metadata
Release files for AxiomX 0.1.41421
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| axiomx-0.1.41421.tar.gz | 14.0 kB | Without provenance | Details for axiomx-0.1.41421.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| axiomx-0.1.41421-py3-none-any.whl | Python 3 | none | any | Details for axiomx-0.1.41421-py3-none-any.whl |
Total release size: 30.4 kB
Release files / axiomx-0.1.41421.tar.gz
| Download URL | axiomx-0.1.41421.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
795299ebe268f3c333baaa3a3e5ecdcd1e4b8cd3f780dd96d5212d13e48d926b
|
|
BLAKE2b-256 checksum How to use checksums |
9908d39fb5ff2332485762ab8edff3dbb248a1f06b512a6c5540f1d364bcee94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / axiomx-0.1.41421-py3-none-any.whl
| Download URL | axiomx-0.1.41421-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
947f4181d48004f29d5168bfa74ee6e609528e5fbbb062e366f4ac7cd3ae8b45
|
|
BLAKE2b-256 checksum How to use checksums |
4d291fe9fc7581acf7ea08cae5c8cebcb6642f4116a1a59bd0a2dcc8a741dbd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for AxiomX 0.1.41421
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.