This bot is developed to solve 1st and 2nd order differential equations using the Runge-Kutta method, a numerical technique for solving ordinary differential equations.
- Python 3.6+
- Java 8
- Maven
Clone the repository to a convenient location and install all the required libraries from requirements.txt.
Installation on Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Installation on Windows:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
Requirements:
matplotlib==3.8.2
numpy==1.26.3
py4j==0.10.9.7
python-telegram-bot==20.7
sympy==1.12
After activating the virtual environment, you'll need to get the Telegram bot token and enter it into config.json.
"TELEGRAM_TOKEN": "YOUR_TOKEN"
You'll need Maven and Java 8 to run it.
mvn clean install
To use the bot, you need to run main.py first.
cd solver-bot/src/main/python
python3 main.py # python main.py on Windows
Next, when main.py is already running, you'll need to return to your home folder and run Main.java.
java -cp solver-common/target/solver-common-0.1.jar com.solver.Main
Distributed under the MIT License. See LICENSE for more information.