next up previous contents
Next: Makefile Up: Getting organized Previous: Routine naming conventions

p480.h

This and the next item do not require any work on your part. These are useful files which you can cut and paste (from the web version of the problem set) for your own use for those programming in C.

If you are programming in C, it will be useful to have a header file ``p480.h'' will all of the prototypes for our routines gathered together, so that you can include them quickly with an include statement:

#include "p480.h"

At present, my ``p480.h'' file, including the prototypes for the new routines from this homework, appears as

#ifndef _P480_H_
#define _P480_H_

double trapint(double f[],double x[],double dx[],int N);
double simpint(double f[],double x[],double dx[],int N);

void rk4p480(double y[], double dydx[], int n, double x, double h,
	     double yout[],
	     void (*derivs)(double, double [], double [], 
			    int, double [], double [], double [], int),
	     int k, int dk, double f[], double r[], double dr[], int N);

double rtbisp480(double (*func)(double,int,double [],double [],double[],int),
		double x1, double x2, double xacc,
		int kmatch, double Veff[], double r[], double dr[], int N);

double zriddrp480(double
	      (*func)(double,int,double[],double[],double[],int),
	      double x1, double x2, double xacc,
	      int kmatch, double Veff[], double r[], double dr[], int N);

#endif


Tomas Arias
Wed Feb 16 12:12:49 EST 2000