You are on page 1of 8

SMQ 3023

NUMERICAL METHODS

LECTURER

DR ANNIE A/P GORGEY

TUTORIAL 5

GROUP B

NAME : NIK NURAINI BINTI NIK ASLI

MATRIC NO : D20151070947
1. Given the following polynomial 𝒑(𝒙) = 𝟒𝒙 𝟒 − 𝟐𝒙 𝟑 + 𝟑𝒙 𝟐 − 𝒙 + 𝟏𝟎.

(a) Rewrite the polynomial using nested multiplication.

(b) Find the value at x0 = −2 using Horner’s scheme.

(c) Use the Scilab function horner and find the values of b ′ s at x0 = −2.
2. Given the following set of data (0,3), (1,2) and (2,3). Use Vandermonde approach

to find

(a) The a’ values obtained for that following set of data.

(b) The interpolating polynomial.

(c) p(1.5).
3. Use the Scilab code VANDER and find the Vandermonde matrix V and the

vector coefficients a. Check that your handwritten and Scilab must give the

similar solutions.
4. Use the Scilab code for Lagrange polynomial for the following data points (10.1,

0.175), (22.2, 0.378), (32, 0.53), (41.6, 0.664) and (50.5,0.636).

(a) What is the interpolating polynomial p(x).

(b) Find the interpolated value at x = 29.6. You may need to modify the code so

that it will compute the value at x = 29.6.


5. Given the data points are (10.1, 0.175), (22.2, 0.378), (32, 0.53), (41.6, 0.664) and

(50.5,0.636).

(a) Write down the NDD table. Show handwritten solution.

(b) What is the interpolating polynomial.

(c) Find p(29.6).


(d) Use the Scilab code that uses Newton divided difference polynomial to find

the interpolated value at x = 29.6.

You might also like