Return weights for an Np-point central derivative.
Assumes equally-spaced function points.
If weights are in the vector w, then derivative is w[0] * f(x-ho*dx) + ... + w[-1] * f(x+h0*dx)
Parameters : | Np : int
ndiv : int, optional
|
---|
Notes
Can be inaccurate for large number of points.