
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problem set 4 for astr 5540, a graduate-level astronomy course focusing on mathematical methods. Students are required to write a routine for an error-controlled numerical integrator using automatic stepsize control for specified relative and absolute errors. They can choose their preferred language and algorithm, with the 4th-order runge-kutta method and c language being default options. Students are encouraged to use the provided template routines on the class website for testing purposes.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

ASTR 5540 Math Meth Fall 2008. Problem Set 4. Due Mon Sep 22
(a) Code
Write a routine that calls the integrator that you wrote in Problem Set 2, that carries out automatic stepsize control to specified relative and absolute error. As before, you are free to choose the algorithm and language of your choice, the defaults being the c language, and the 4th-order Runge-Kutta algorithm.
You are welcome to use the template routines on the class website at http://casa.colorado. edu/∼ajsh/astr5540 08/prob.html. Since I want you to focus your energies on the routine that does automatic stepsize control, the template routines include a complete, debugged test driver routine test rk4e.c.
(b) Test
Test your code by integrating the equations for the evolution of hydrogen in a fast shock from Problem Set 3.