Fdweights.m

From Spinach Documentation Wiki
Revision as of 17:29, 2 November 2015 by Admin (talk | contribs) (Created page with "Calculates finite difference weights for numerical derivatives (including order 0, which amounts to interpolation). Syntax: w=fdweights(target_point,grid_points,max_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Calculates finite difference weights for numerical derivatives (including order 0, which amounts to interpolation). Syntax:

        w=fdweights(target_point,grid_points,max_order)

Parameters:

 target_point - the point at which the derivative is required
 grid_points  - the points at which the function is given
 max_order    - maximum derivative order

The function returns finite difference coefficient array with the coefficients for the successive derivatives in rows.