0% found this document useful (0 votes)
20 views3 pages

Assignment Lec 15

This is the ALGORITHM of RK4

Uploaded by

Tiep Dinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Assignment Lec 15

This is the ALGORITHM of RK4

Uploaded by

Tiep Dinh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ASSIGNMENT LEC 15

1. Given the data points of the function f and its derivative f ' .

x f(x) f'(x)
-1.0 0.00000 1.50000
-0.8 0.29545 1.41667
0.2 1.68324 1.22727
0.7 2.34317 1.18519
Use it to construct Hermit interpolation of f using:
a) The result in Theorem 3.9 (see Lecturenote).
b) Using Divided Difference Formula (Use excel to perform your calculation)! (NOTE: Divided
Diffence method applied to Hermite interpolation must be used with dummy nodes. So it is not
the same as original version.)
2. Write a matlab program implementing the Divided Difference Formula to construct
coefficients of the Hermit interpolation and find Hermite interpolation (Use simplify function
in Command Window to help you calculate it). Then use this to check the above the result (in
Exercise 1).

Refer to the following code:


Assignment 3. Write a Matlab program to implement:
a) Trapizoidal rule
b) Simpson’s rule
c) Closed Newton-Cotes with n=4
d) Composite Midpoint rule
(Refer/Imitate to the code in
lecture time. See below)
e) Composite Trapezoidal rule
f) Composite Simpson rule
(Refer to Pseudo-code beside.
Or imitate the program below)
(The 2nd Composite Simpson program follows the Psedo-code. We could replace white-loop in
both programs by for-loop!)

You might also like