Skip to content

dmitryesin/runge-kutta-solver-bot

Repository files navigation

Runge-Kutta Solver Bot

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.

Installation

Prerequisites

  • Python 3.6+
  • Java 8
  • Maven

Bot Installation

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"

Java Server Installation

You'll need Maven and Java 8 to run it.

mvn clean install

Usage

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

License

Distributed under the MIT License. See LICENSE for more information.

About

Telegram bot that solves differential equations of the 1st and 2nd order using the Runge-Kutta method

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published