Exercise: comparing derivative formulas
Computing for with the six finite-difference formulas and comparing their errors against the exact value .
Data and comparison
With , step and nodes , we approximate . The analytic value is . The table gives each approximation and its absolute error.
| Formula | f'(0.5) | Error ε |
|---|---|---|
| Progresiva O(h) | 0.4563 | 0.0014 |
| Progresiva 3 puntos O(h²) | 0.4801 | 0.0252 |
| Regresiva O(h) | 0.4118 | 0.0431 |
| Regresiva 3 puntos O(h²) | 0.5204 | 0.0655 |
| Central O(h²) | 0.4341 | 0.0208 |
| Central 5 puntos O(h⁴) | 0.4561 | 0.0012 |