PREVIOUS: Programming Strategies
UP: Course Outline
NEXT: A Better Integrator
4. Accuracy and Errors
Reminder:
the simple integration scheme
C++
and
python
template programs for the simple integration scheme
Integration errors
In-class exercise 4.1
(
C++
and
python
solutions)
Reminder: using
shell scripts
with the
single loop version
of the program.
In-class exercise 4.2
: the Euler method
A better integrator
In-class exercise 4.3
: a second-order scheme
Taylor series methods
Comparison of second-order schemes
simple versus analytic 2nd order
simple versus numerical 2nd order
analytic versus numerical 2nd order
analytic versus numerical 2nd order (alternate)
In-class exercise 4.4
: a predictor-corrector method
Homework #3