Next: 2. One dimensional Monte
Up: Computational Physics 210: Homework
Previous: Computational Physics 210: Homework
Use the various forms for the numerical first derivative for a uniform
discrete mesh size h:
- 1.
- the 3-point formula
 |
(1) |
- 2.
- the forward and backward 4-point formulas
 |
(2) |
- 3.
- the 5-point formula
 |
(3) |
to evaluate the derivative
 |
(4) |
Use the quasi-logarithmic values for h = 1., 0.3, 0.1, 0.03, 0.01, ...
10-6. Use double precision and print out in scientific notation
the error (i.e. subtract 1.d0)
with 14 significant figures shown (not that the last one or two will
be significant). Print them out in a columnar table so the rates of
convergence will we easy to see.
root
2000-10-23