Classroom Note: Calculation of Weights in Finite Difference Formulas

  • Authors:
  • Bengt Fornberg

  • Affiliations:
  • -

  • Venue:
  • SIAM Review
  • Year:
  • 1998

Quantified Score

Hi-index 0.06

Visualization

Abstract

The classical techniques for determining weights in finite difference formulas were either computationally slow or very limited in their scope (e.g., specialized recursions for centered and staggered approximations, for Adams--Bashforth-, Adams--Moulton-, and BDF-formulas for ODEs, etc.). Two recent algorithms overcome these problems. For equispaced grids, such weights can be found very conveniently with a two-line algorithm when using a symbolic language such as Mathematica (reducing to one line in the case of explicit approximations). For arbitrarily spaced grids, we describe a computationally very inexpensive numerical algorithm.