Code covered by the BSD License  

Highlights from
Compute the value of Lagrange polynomial at given points

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 1.99 KB File ID: #36522

Compute the value of Lagrange polynomial at given points

by

 

04 May 2012 (Updated )

The function computes the value of a Lagrange polynomial with mesh points x and mesh values y.

| Watch this File

File Information
Description

The function is implemented based on Barycentric method. The code is vectorized for fast speed. The mesh points x is a row vector. The mesh value y is a matrix, with each row representing the mesh values of a polynomial. y(i,j) is the value of the i'th polynomial at mesh points j. The return value p is a matrix, with p(i,j) to be the value of the i'th polynomial at points t(j)

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
17 Sep 2012

change some description

25 Jan 2013

change the description of the file

23 Oct 2013

Change the 'equal' between two double precision numbers to 'approximate equal'. Replace all 'repmat' to 'bsxfun' to speed up computation

Contact us