Lagrange Interpolation code

조회 수: 5 (최근 30일)
R M
R M 2011년 3월 21일
Lagrange Interpolation
a) Write a Matlab function that produces a fourth-order accurate Lagrange
interpolation f4 (x) for a function f in the point x , given the points x0 , x1 , x2 , x3 , x4
and the values f(x0 ), f(x1 ), f(x2 ), f(x3 ), f(x4 ) .
b) Given
f(?1/2 ) = ?1, f(?1/6 ) = ?1/2 , f(0) = 0, f(1/6) =1/2 , f(1/2 ) =1, show that these values
indicate that f could be an odd function. Use your Matlab function to find the
fourth-order interpolation at x=1/3 and the fourth-order extrapolation at x =1.
Would the extrapolation be accurate (explain)?

답변 (3개)

Matt Fig
Matt Fig 2011년 3월 21일
As Paulo indicates, MATLAB Answers is not a Homework solving service. However, if you show some effort (code) and ask specific questions regarding the use of MATLAB to solve your problem, then you will most likely receive help.
  댓글 수: 1
reem
reem 2011년 4월 12일
Yes this is true

댓글을 달려면 로그인하십시오.


Paulo Silva
Paulo Silva 2011년 3월 21일

Matt Tearle
Matt Tearle 2011년 3월 21일
Hmm, maybe you should form a study group with buxZED...?

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by