Forward Difference¶
Local Algorithm - One-Dimensional Algorithm
The basic formula for computing the Forward Difference derivative at the point ti is stated as follows:
Y(ti)′=Y(ti+hi)−Y(ti)hi
where Y(ti) is the function value at time point ti, Y′(ti) is the first derivative at time point ti, hi is the step size between the point ti and the next time point.
Input Parameters
Parameter | Type | Constraint | Description | Remarks |
---|---|---|---|---|
Y | A continuous function or a data vector | |||
hi | hi∈R+ |
Output Parameters
Parameter | Type | Constraint | Description | Remarks |
---|---|---|---|---|
ˆY | A data vector | First derivative of Y with respect to time t |
Single Steps using the Algorithm
References
- R. L. Burden and J. D. Faires, Numerical Analysis, Fifth Edition, PWS Publishing Co. Boston, MA, 1993.