2-nd semester educational practice
The program has an intuitive text interface
The project consists of three modules, each module solves one of the tasks below:
- Solving nonlinear equations
- Interpolation
- Numerical integration
- Getting a function
- Plotting the function
- Setting the boundaries of the root search
- Setting the search error
- Solving
- Using the developed function
- Determination of the 1st and 2nd derivative at point a
- Checking for monotony and convexity
- Cyclic root search until the required accuracy is achived
- Using the built-in function
- Using the developed function
- Output of the results
- Getting a vector of arguments
- Getting a vector of values
- Solving
- Using the developed function
- Initialization of the vector of coefficients of the polynomial
- Summation of products of values (y(i)) with corresponding products of fractions (lix(x,i))
- Converting a vector of coefficients to function handle
- Using the developed function
- Search and output to the console values for the desired points
- Plotting the function
- Calculated by the developed function
- Solving
- Using the built-in functions
- Search and output to the console values for the desired points
- Plotting the function
- Calculated by the built-in function
- Getting the integrand funtion
- Setting the lower and upper limits of integration
- Setting the error of calculating the integral
- Solving
- Using the developed function
- Setting the integration step
- Cyclic calculation until the desired accuracy is achieved
- Construction of grid nodes on a segment with a given step
- Search for the second derivative for the following error calculation
- Initializing of a variable storing the sum of trapezoid areas
- Calculation the trapezoid area and adding this value to the 'area' variable
- Searching the largest second derivative
- Calculation of the error of integral calculations
- Checking for sufficient accuracy
- Decreasing the integration step, according to the Runge rule
- Using the developed function
- Output of the result and the actual error for the developed function
- Solving
- Using built-in function
- Output of result calculated by the built-in function
>> info_prog
Программа 'MyLib'
Назначение: автоматизация математических задач
(Решение нелинейных уравнений, интерполяция, интегрирование)
- - - - - - - - - - - - - - -
В программе используются следующие методы решений:
Нелинейные уравнения - метод Ньютона
Интерполяция - метод Лагранжа
Интегрирование - метод трапеций
- - - - - - - - - - - - - - -
Последняя редакция: 21.04.2023
- - - - - - - - - - - - - - -
Разработчик:
Куриш Михаил Викторович
ГУАП, гр №4232
kypten.wave@gmail.com
- - - - - - - - - - - - - - -