ArfLab — Mathematical Environment Library in Python
ArfLab is a Python library that provides an abstract mathematical environment designed to represent and manipulate sets, intervals, and number systems in a symbolic and intuitive way.
The project is continuously growing, with new mathematical structures and operations being added every day.
Developed and maintained by a Mathematics undergraduate student at Marmara University, ArfLab aims to combine mathematical theory with computational representation, creating a bridge between abstract reasoning and code implementation.
Features
-
Abstract representation of Sets, Intervals, and Number Systems
-
Support for Vector operations and linear algebra concepts
-
Symbolic and numerical computation environment
-
Integration with matplotlib for visualization
-
Intuitive class structures and error handling for mathematical rigor
Vector
-
Magnitude
-
Specific vector information
-
Inner product
-
Angle between two vectors
-
Visualization with matplotlib
-
Find unit vector
-
Cosine value between two vectors
-
Projection around two vectors
Matrix
-
Precisely defined mathematically
-
Transpose
-
Special matrix definitions
-
Determinant
-
Hadamard and classical product
-
Symbolic Matris
-
(3,3) Sarrus Method
-
Permanent Algorithm
Combinatorics
-
Permutation
-
Combination
-
Posibilty
Calculus
-
Find Supremum İnfrimum value
-
Σ and Π operations
-
Transformation
-
Monotonicity of the series
-
Symbolid sequance
Physics
- Wave equation analysis and visualization
$$ \psi(x,y) = \frac{2}{\sqrt{L_x L_y}} \sin\left(\frac{n_x \pi x}{L_x}\right) \sin\left(\frac{n_y \pi y}{L_y}\right) $$
- Energy levels of a particle in a two-dimensional cubic box
$$ E = \frac{\pi^2 \hbar^2}{2m} (n_x^2 + n_y^2 + n_z^2) $$
Wave_Equation(Lx=2.0, Ly=1.5, nx=4, ny=1, N=100)
Visualization
ArfLab includes built-in vector visualization features using matplotlib, allowing users to plot and analyze vector relationships directly in Python. This helps bridge the gap between symbolic manipulation and geometric intuition.
Installation / Download
PyPI (Recommended)
pip install ArfLab
Git
git clone https://github.com/Jolankaa/ArfLab
cd ArfLab
pip install .
Few Examples
import ArfLab
# Example: Creating a vector
v = ArfLab.Vector([1,2,3])
print("Magnitude:", v.magnitude())
# For visualization
v.Visualization()
# Example: Creating a matrix
m = ArfLab.Matrix([[1,2],[3,4]])
print("Determinant:", m.determinant())
Metadata
Release files for ArfLab 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arflab-2.1.2.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arflab-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / arflab-2.1.2.tar.gz
| Download URL | arflab-2.1.2.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
157f03e465b3e4a121d720ec1daaeccb896a2ec7102c3bd17c349128b60f360f
|
|
BLAKE2b-256 checksum How to use checksums |
a8b9bbeaace9ac7b33824a4c4753574ad8c566a84cea0efbf992a103eb57adf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / arflab-2.1.2-py3-none-any.whl
| Download URL | arflab-2.1.2-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f70dab07be315660e0666e15d86668d17df9caaff322cd07a13e3c86c71410e8
|
|
BLAKE2b-256 checksum How to use checksums |
da5fa2da96d9f3e33ccf94dc370d2072b4bb27d5151efb05ff8f050f8fb7581a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|