Small project to do math with my computer. Functionnal programming things in python.
Focus on lisibility
| .idea | ||
| python_symb | ||
| README.md | ||
Python-symbolic
Python-symbolic is a small project written in pure Python that allows you to perform symbolic mathematics on your computer. The focus is on readability and simplicity.
Features
Done:
- Default type definitions
- Expression tree implementation
- Transformation of infix strings to expression trees
- Visualization of expression trees
To-Do:
- Create a type (BinOperator) for exponents
- Implement complex numbers
- Modify expression trees, including:
- Expansion of expressions (e.g.,
a*(a+b)toa^2 + ab) - Factorization of expressions (e.g.,
a^2 + 2ab + b^2to(a+b)^2) - Easy simplification (e.g.,
sin(x)² + cos(x)²to1)
- Expansion of expressions (e.g.,
- Define calculus types:
- Derivative
- Integral
- Sum
- Product
- Limit
Exemple of visualation of the expression tree (launch tree_visual.py to see)