ECE 427L - Activity 10
ECE 427L - Activity 10
ECE 427L
ACTIVITY NO. 10
POLYNOMIAL INTERPOLATION
Submitted by:
CALAUNAN, Joeben A.
MACARAEG, Sophia Marie B.
Submitted to:
Engr. Michael A. Cagaoan
Instructor
DATE SUBMITTED:
May 1, 2020
Saint Louis University
SCHOOL OF ENGINEERING AND ARCHITECTURE
LABORATORY MANUAL
ACTIVITY NO. 10
POLYNOMIAL INTERPOLATION
ACTIVITY OBJECTIVE:
At the end of the activity, the student should be able to write programs to determine the
interpolating polynomial for a given set of data.
EQUIPMENT NEEDED:
PC with Scilab
LABORATORY ACTIVITIES:
(a) Evaluate f(1.7), f(2.3), and f(2.8) from the given function.
f(1.7) = 5.1359731 f(2.3) = 13.636105 f(2.8) = 24.565896
(b) Determine a quadratic interpolating polynomial fp(x) by considering three equally spaced data points
in the given interval (e.g. x=1, x=2, x=3). Evaluate f(1.7), f(2.3), and f(2.8) using the interpolating
polynomial.
(c) Determine a cubic interpolating polynomial fp(x) by considering four equally spaced data points in the
given interval. Evaluate f(1.7), f(2.3), and f(2.8) using the interpolating polynomial.
(d) Determine a quartic interpolating polynomial fp(x) by considering five equally spaced data points in
the given interval. Evaluate f(1.7), f(2.3), and f(2.8) using the interpolating polynomial.
LABORATORY MANUAL
(e) Determine a quintic interpolating polynomial fp(x) by considering six equally spaced data points in
the given interval. Evaluate f(1.7), f(2.3), and f(2.8) using the interpolating polynomial.
fp(x) = 0.5603407 – 0.7199979x + 1.3932934x2 + 2.6571445x3 – 0.4461147x4 + 0.035068x5
Do the preceding results show the quadratic interpolating polynomial is significantly more accurate
than the cubic interpolating polynomial? No
Do the preceding results show the quintic interpolating polynomial is significantly more accurate
than the quartic interpolating polynomial? Yes
OBSERVATIONS:
In this activity, we evaluate f(1.7), f(2.3), and f(2.8) from the given function of x which is x2ln
(x3+1) over 1≤x≤3. We then determine the interpolating polynomial by considering different data
points in given interval such as three, four, five and six equally spaced data points. We noticed that the
higher degree of the equally spaced data points with the given interval the more accurate results we
get. Furthermore, the interpolating polynomial differs as the data points increases. However, we
noticed that we get a very inaccurate results in f(1.7) with three equally spaced data points.
CONCLUSIONS: