0% found this document useful (0 votes)
47 views2 pages

Jeslin

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1/ 2

Jeslyn Prinssesa

21201800024

2. Use Neville's method to obtain the approximations for Lagrange interpolating


polynomials of degrees one,two, and three to approximate each of the following:
(a) f(0.43) if f(0) = 1, f(0.25) = 1.64872, f(0.5) = 2.71828, f(0.75) = 4.48169
x f(x0)
0 1
0.25 1.64872 2.1157984
0.5 2.71828 2.4188032 2.376382528
0.75 4.48169 2.2245252 2.34886312 2.360604734
(b) f(0) if f(-0.5) = 1.93750, f(-0.25) = 1.33203, f(0.25) = 0.800781, f(0.5) = 0.687500
x f(x0)
-0.5 1.9375
-0.25 1.33203 0.72656
0.25 0.800781 1.0664055 0.9531236667
0.5 0.6875 0.914062 1.0156243333 0.984374
(c) f(0.18) if f(0.1) = -0.29004986, f(0.2) = -0.56079734, f(0.3) = -0.81401972, f(0.4) = -1.0526302
x f(x0)
0.1 -0.29004986
0.2 -0.56079734 -0.506647844
0.3 -0.81401972 -0.510152864 -0.508049852
0.4 -1.0526302 -0.527687144 -0.508399436 -0.50814307
(d) f(0.25) if f(-1) = 0.86199480, f(-0.5) = 0.95802009, f(0) = 1.0986123, f(0.5) = 1.2943767
x f(x0)
-1 0.8619948
-0.5 0.95802009 1.102058025
0 1.0986123 1.168908405 1.185621
0.5 1.2943767 1.1964945 1.1895979763 1.188935147

4. Let P3(x) be the interpolating polynomial for the data (0,0), (0.5,y), (1,3), and (2,2). Use Neville's method to find y if P3(1

x f(x0)
0 0
0.5 y 3y
1 3 6-y 9-3y
2 2 2.5 (5,5-0,5y)/1,5 0

(((1,5-0)*((5,5-0,5y)/1,5))-((1,5-2)*(9-3y)))/(2-0) = 0
(10-2y)/2 = 0
5-y = 0
y=5
-6.125

5) = 0.687500

401972, f(0.4) = -1.0526302

3, f(0.5) = 1.2943767

eville's method to find y if P3(1.5) = 0

You might also like