n th order derivative using forward difference

조회 수: 1 (최근 30일)
Md Abu Talhamainuddin Ansary
Md Abu Talhamainuddin Ansary 2018년 2월 5일
편집: Jan 2018년 2월 5일
How can I calculate n th order derivative of f: R->R using forward difference formula?

답변 (2개)

Torsten
Torsten 2018년 2월 5일
Recursively:
https://ipfs.io/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/Difference_quotient.html
Best wishes
Torsten.

Jan
Jan 2018년 2월 5일
편집: Jan 2018년 2월 5일
Is this a homework? Then please mention this explicitly, because this requires a different kind of answering.
Did you read the general formula already? https://en.wikipedia.org/wiki/Finite_difference, see "Higher order differences". This is not hard to implement. If you have problems with the code, please post, what you have tried so far and ask a specific question. Note: Use https://www.mathworks.com/help/matlab/ref/nchoosek.html nchoosek to calculate "n over k".

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by