In the previous lesson you wrote a program that computes the way that heat transfers in a rod when heat sources are applied to the two ends. You displayed the results computed by your program by calling our function print_rod

Even though both routines are long and involved, they succeed only in producing relatively crude histograms. Since a different histogram is produced for each instant in time, it is difficult to visualize exactly how the temperature of the rod is changing over time.

Your assignment for today is to replace our rod printing routine with a C function of your own design. The routine that you come up with should write, to a file, a Maple command that will animate the results computed by your program. If you do everything correctly, you will be able to include this file into Maple and visualize the cooling of the rod.

In the final two sections, we will look at what you need to do to produce the required animation in Maple and at what modifications are required to your program.

Joseph L. Zachary
Hamlet Project
Department of Computer Science
University of Utah