numdifftools.core.fornberg_weights_all

numdifftools.core.fornberg_weights_all(x, x0, M=1)[source][source]

Return finite difference weights_and_points for derivatives of all orders.

Parameters:

x : vector, length n

x-coordinates for grid points

x0 : scalar

location where approximations are to be accurate

m : scalar integer

highest derivative that we want to find weights_and_points for

Returns:

C : array, shape n x m+1

contains coefficients for the j’th derivative in column j (0 <= j <= m)