Contents | Previous | Next | Subchapters |

Syntax |
`lagrange(` xd`, ` yd`, ` xi`)` |

See Also | polyfit , cubespl , interp , interp2 |

Returns the value of the Lagrange interpolating polynomial of a column vector valued function at a point. The interpolating polynomial has degree that is one less than the column dimension of

```
```

xd = [-1., 0., 2.]

yd = [+1., 0., 4.]

xi = 3.

print lagrange(xd, yd, xi)

returns
```
```

9