How kommaddifayaz-lan/calc-x works
CALC-X is a menu-driven terminal calculator. The documented workflow is a user selecting a calculator or math tool in the main menu, entering values or an expression, and receiving a computed result. The README documents the menu-to-feature structure; sampled code confirms the expression evaluator and matrix and polynomial-calculus implementations. The tree also contains a MySQL history backend, but the available excerpts do not show how the menu invokes it. project_files/ contains parallel copies; its database implementation is represented separately because it is a listed core module.
Main entry points: main.py Menu and interaction · database.py History operations · project_files/database.py Project history operations · calculator.py Expression evaluator
Components 13
Terminal interface
- Menu and interaction
main.py
Expression calculators
- Basic and scientific
main.py - Expression evaluator
calculator.py
Math tools
- Algebra solver
algebra.py - Equation solver
equations.py - Matrix operations
matrix.py - Statistics
statistics.py - Polynomial calculus
calculus.py
History storage
- History interaction
main.py - History operations
database.py - Project history operations
project_files/database.py
Other components
- Calculator user
- MySQL database
Connections 12
- Calculator user → Menu and interaction: selects
README.md - Menu and interaction → Basic and scientific: routes to
README.md - Menu and interaction → Algebra solver: routes to
README.md - Menu and interaction → Equation solver: routes to
README.md - Menu and interaction → Matrix operations: routes to
README.md - Menu and interaction → Statistics: routes to
README.md - Menu and interaction → Polynomial calculus: routes to
README.md - Menu and interaction → History interaction: routes to
README.md - Basic and scientific → Expression evaluator: evaluates with
README.md - Calculator user → Basic and scientific: enters expression
README.md - History operations → MySQL database: reads and writes
database.py - Project history operations → MySQL database: reads and writes
project_files/database.py