## Finite difference weights

버전 1.0.0.0 (1.77 KB) 작성자:
Finds finite difference (or interpolation) weights for an arbitrary set of nodes in one dimension.

다운로드 수: 2.2K

업데이트 날짜: 2007/2/6

라이선스 보기

Given a vector of nodes x, a point of interest xi, and a nonnegative order of derivative m, this function returns weights such that an inner product with the values f(x) returns an approximation to f^(m)(xi). Based on the recursive formula due to Fornberg (A Practical Guide to Pseudospectral Methods, Cambridge University Press).

Examples from the file:

% First derivative near a boundary
h = 0.4; x = h*(0:5)';
w = fdweights(x(2),x,1)
[ w'*exp(x) exp(x(2)) ]

% Interpolation
x = [0 0.25 1 1.5 2.5]';
w = fdweights(0.5,x,0)
[ w'*sin(x) sin(0.5) ]

### 인용 양식

Toby Driscoll (2023). Finite difference weights (https://www.mathworks.com/matlabcentral/fileexchange/13878-finite-difference-weights), MATLAB Central File Exchange. 검색됨 .

개발 환경: R2006b
모든 릴리스와 호환
##### 플랫폼 호환성
Windows macOS Linux
##### 카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0