Solution of ODEs in Matlab
Matlab solvers for non-stiff problems are ode45, ode23 and ode113.
ode45 is a one-step explicit solver which simultaneously uses fourth and fifth order RK formulas.
ode23 is
Ordinary Differential Equations (ODEs)
(These notes are based mainly on the 6th Edition of the textbook
Numerical Methods for Engineers by S.C. Chapra and R.P. Canale.)
Equations which involve unknown
Roots of Equations
(These notes are based mainly on the 6th Edition of the textbook
Numerical Methods for Engineers by S.C. Chapra and R.P. Canale.)
In numerical solutions, the equation to be solved i
Solved Problems on Total Numerical Error
Example8: Using Taylor series expansion, we can obtain a formula for the first derivative of a function as
given below. Note that
= + and
= .
( )=
Here,
(
) (
Approximations and Errors
(These notes are based mainly on the 6th Edition of the textbook
Numerical Methods for Engineers by S.C. Chapra and R.P. Canale.)
Error Definitions
Et = True Error = True val
Numerical Differentiation
Numerical differentiation formulas (see Chapters 4 and 23 in the textbook) can be derived using Taylor
Series expansion as given in Equation (6.1).
(
)= ( )+
where =
( )
( )
Least-Squares Regression
Linearisation of Nonlinear Behaviour
The relationship between the dependent and independent variables in a data-set may not be linear; therefore
in such cases it is more suita
MMU 242 MATLAB TUTORIAL / FUNDAMENTALS OF MATLAB FOR NUMERICAL
ANALYSIS
PART- I: USING THE COMMAND WINDOW
For an introduction into Matlab, students can download getstart.pdf from the
Matlab website.
C
Gauss Quadrature (Gauss-Legendre formulas)
Fig. 5.1 (a) Trapezoidal rule using the end points, (b) Improved integral estimate using two intermediate points
Suppose that we would like to estimate ( )
u