
- •Чисельні методи Використання MatLab
- •Затверджено
- •Contents
- •The purpose and the contents of laboratory works
- •Laboratory work №1 Programming in the environment of Matlab
- •1.1 Purpose of the work
- •1.2 The tasks to laboratory work
- •The basic theoretical knowledge
- •Global Variables
- •Passing String Arguments to Functions
- •Constructing String Arguments in Code
- •The eval Function
- •Vectorization
- •Preallocation
- •Anonymous Functions
- •Switch and case
- •Continue
- •The individual task to laboratory work
- •1.5 The task for self-examination
- •1. For opening the editor of the programs in MatLab it is possible to execute:
- •Laboratory work №2 Solution of Nonlinear Equations by the Bisection method and Chord method
- •2.1 Purpose of the work
- •2.2 Tasks for laboratory work
- •2.3 The basic theoretical knowledge
- •2.3.1 Bisection method
- •Figure 2.1 – Bisection method
- •Chord method
- •Figure 2.4 – Chord method
- •2.3.3 Matlab function fzero and roots
- •2.4 Individual tasks
- •2.5 Control questions
- •Laboratory work №3 Solution of Nonlinear Equations by the newton method and simple iteratIvE method
- •Figure 2.1 – Newton method
- •Figire 2.2 - Dependence of the number of iterations on the accuracy of methods for the bisection (upper line) and the Newton method (bottom line)
- •2.3.2 The method of simple iteration
- •A sufficient condition for the convergence of the iterative process
- •Individual tasks
- •Laboratory work №3 Solution system of Linear Algebraic Equations
- •3.3.1 Direct methods
- •Inverse matrix:
- •3.3.2 Iterative methods
- •Condition number of a
- •3.4 Individual tasks
- •3.5 Control questions
- •Solving systems of nonlinear equations
- •5.1 Purpose of the work
- •5.2 Tasks for laboratory work
- •5.3 The basic theoretical knowledge
- •5.3.1 Newton method to solve systems of non-linear equations
- •5.3.2 Matlab function for Newton method for a system of nonlinear equations
- •5.3.3 The matlab routine function fsolve
- •Input Arguments
- •Individual tasks
- •5.5 Control questions
- •List of the literature
- •Appendix a.
- •Individual tasks to Lab number 1, 2
- •Appendex b. The task for self-examination to Lab number 1, 2
Міністерство освіти і науки України
Запорізький національний технічний університет
Чисельні методи Використання MatLab
МЕТОДИЧНІ ВКАЗІВКИ
до лабораторних робіт з курсу
«Обчислювальна техніка та програмування за фахом»
для студентів кафедри Елетричні та елетронні апарати спеціальності «Електричні машини та апарати»
з англійською мовою навчання
2013
Методичні вказівки до лабораторних робіт з курсу «Обчислювальна техніка та програмування за фахом » для студентів каф. Електричні та електроні апарати спеціальності «Електричні машини та апарати» з англійською мовою навчання /Укл.: Бондаренко Л.О., Каплієнко О.О - Запоріжжя: ЗНТУ, 2013. 82 с.
Містить теоретичні відомості, індивідуальні завдання, завдання на самостійну роботу та приклади виконання лабораторних робiт з курсу «ОТП за фахом» для студентів кафедри електричні апарати.
Укладачi: Л.О.Бондаренко, ,
О.О.Каплієнко
Рецензент: Н.І.Біла
Відповідальний
за випуск О.В.Близняков
Затверджено
на засіданні кафедри
“Електричні апарати”
протокол № 5 від10.01.2013р.
Contents
The purpose and the contents of laboratory works 5
Laboratory work №1. Programming in the environment Matlab 6
1.1 Purpose of the work 6
1.2 The tasks to laboratory work 6
1.3 The Basic theoretical knowledge 6
1.4 Individual tasks 14
1.5 The task for self-examination 17
1.6 Control questions 17
Laboratory work №2. Solution of Nonlinear Equations by
the Bisection method and Chord method 18
2.1 Purpose of the work 18
2.2 Tasks for laboratory work 18
2.3 The basic theoretical knowledge 18
2.3.1 Bisection method 7
2.3.2 Chord method 22
2.3.3 MATLAB function fzero and roots 24
2.4 Individual tasks 26
2.5 Control questions 27
Laboratory work №2. Solution of Nonlinear Equations by the Newton method and Simple Iterative method 28
2.1 Purpose of the work 28
2.2 Tasks for laboratory work 28
2.3 The basic theoretical knowledge 28
2.3.1 The method of tangent(Newton) 28
2.3.2 The method of simple iteration 33
2.4 Individual tasks 35
2.5 Control questions 35
Laboratory work №3. Solution system of Linear Algebraic Equations 36
3.1 Purpose of the work 36
3.2 Tasks for laboratory work 36
3.3 The basic theoretical knowledge 36
3.3.1 Direct methods 36
3.3.2 Iterative methods 43
3.4 Individual tasks 48
3.5 Control questions 51
Laboratory work №5. Solving system of nonlinear equations 53
5.1 Purpose of the work 53
5.2 Tasks for laboratory work 53
5.3 The basic theoretical knowledge 53
5.3.1 Newton method to solve systems of non-linear equations 54
5.3.2 MATLAB function for Newton method for a system
of nonlinear equations 55
5.3.3 The MATLAB routine function fsolve 56
5.4 Individual tasks 56
5.5 Control questions 57
List of the literature 58
Appendex A. Individual tasks to Lab number 1, 2 59
Appendex B. The task for self-examination to Lab number 1, 2 60
The purpose and the contents of laboratory works
The purpose of laboratory works is studying the basic methods of the numerical analysis: the numerical decision systems of the linear equations, the differential equations, etc., and also use of system MatLab – Matrix Laboratory and for realization of the investigated algorithms on a computer. The course of study is designed for students who are familiar with concepts of the mathematical analysis and have heard a course of programming.
To issue the report which should answer working standards ZNTU and to contain the following sections:
target setting;
description of the method of solution - a summary of the theory (formulas, algorithm, etc.);
“manual” calculation under formulas to algorithm of a method;
program (print), description of the program;
analysis of results and summary conclusions of the work.