This repository contains the backend implementation of the Math Solver application, which handles various mathematical operations and provides APIs to interact with the frontend.
Prerequisites Make sure you have Python installed on your system. It's recommended to use a virtual environment to manage dependencies.
Clone the repository:
git clone <repository-url>Navigate to the project directory:
cd <project-directory>Activate the virtual environment: On Windows:
venv\Scripts\activateOn macOS/Linux:
source venv/bin/activateInstall the required packages:
pip install -r requirements.txtRunning the Backend To run the backend server, use the following command:
python app.pyThe server will start, and you can access the backend services through the exposed endpoints.
The frontend part of this application is hosted in a separate repository. To run the complete application, follow the setup instructions provided in the mathsolverfrontend. Make sure the backend is running before starting the frontend.
- app.py: The main backend script to run the server.
- cardano_method.py: Implements Cardano's method for solving polymial equations.
- matrix_operations.py: Contains various matrix operations.
- test_solvers.py: Test scripts for validating mathematical solvers.
- venv/: Virtual environment directory.
- node_modules/: Contains Node.js modules (used if frontend is linked).
- pyproject.toml: Python project configurations.
- package.json: Node.js package configuration.
Feel free to fork this repository and submit pull requests for improvements. Make sure to follow best practices and write tests for new features.