This is a repository containing numerical algorithms, written in Python and C++. They are used in homework for Numerical Methods course in 3rd year of Applied Math undergraduate program in HSE University. Homeworks are mostly annotated in russian.
Homework topics:
- Numerical precision, computer representation of numbers
- Solving nonlinear equations
- Numerical precision for matrix operations
- Solving systems of nonlinear equations
- Solving systems of linear equations with iterative methods
- Function approximation
- Solving ordinary differential equations
- Skipped that one.
- Function optimization
- Solving partial differential equations
-
Clone repository to local machine
-
Install Pyenv using this guide and install Poetry
-
Install Python, used in project
$ pyenv install 3.10.6
If any problems happen - this guide can help.
-
Create virtual environment with Poetry and install requirements:
$ cd <path to cloned repo> $ poetry install
-
Use Poetry tools for running scripts and testing:
$ poetry run python <script>.py
And you are perfect, congratulations!
Right now most of the cpp files are easily compilable without any need to start a project, if you have G++ installed.
$ g++ <file>.cpp -o <executable_name>
$ sh ./<executable_name>