This repository contains two projects:
- Function approximation and interpolation
- Threat detection
This project is an application for function approximation and interpolation using tkinter for the graphical user interface and numpy for calculations. The program allows users to enter approximation nodes and function values at these nodes, and then plots linear, quadratic, and cubic approximation graphs.
- Linear approximation: Fit a linear polynomial to the given data.
- Quadratic approximation: Fit a quadratic polynomial.
- Cubic approximation: Fit a cubic polynomial.
- Visualization: Plot the original data and approximation functions.
- After launching the application, a window will appear with fields for entering nodes and function values.
- Enter the approximation nodes and function values in the respective text fields.
- Click the Approximate function button to perform approximation.
- The result will be displayed as graphs of linear, quadratic, and cubic approximations.
This project is an application for finding threats in a random stream of letters. It uses tkinter to create the graphical interface. The program allows the user to create a random array of strings and search for specific threats within it.
- Create array: Generate an array of random strings.
- Find threats: Search for a specified threat in the generated array.
- Clear: Clear the current state and data.
- After launching the application, a window will appear with buttons to create an array, find threats, and clear data.
- Click the Create array button to generate a random array of strings.
- Enter a threat in the text field and click the Find number of threats button to find how many times the threat appears in the array.
- Use the Clear button to reset the current state.
-
Clone the repository:
git clone https://github.com/account_name/name_repository.git
-
Navigate to the project directory:
cd name_repository -
Ensure required modules are installed: Install the necessary modules using pip:
pip install tkinter matplotlib numpy
-
Run the script: Open your command line or terminal and execute:
python3 file_name.py
- Ensure that all dependencies are installed and working.
- The projects require
matplotlib,numpy, andtkmodules.





