lagrange: Generate a Lagrange polynomial

Description Usage Arguments Value

Description

Generates a function which evaluates the Lagrange polynomial of the given function and given node points

Usage

1
lagrange(FUN, col_pts)

Arguments

FUN

The function to interpolate.

col_pts

The node points at which to calculate FUN, where the poly must equal FUN. Should be a list of node points for multivariate polynomial.

Value

The function which evaluates the Lagrange polynomial.


Blaza/scmc documentation built on May 29, 2019, 6:41 a.m.