The output of getallPsis() will be a three-dimensional array, one full wave function for each value of (n,l): Psi[l][n][0..N]. For some reason, Numerical Recipes provides routines for three-dimensional arrays in single precision, but not double precision. Accordingly, generalize the Numerical Recipes utility routines f3tensor() and free_f3tensor() to double precision by replacing all occurrences of float with double, thereby producing routines with the two prototypes below. You should place these routines at the top of ``p480.c'' (and their prototypes in ``p480.h''). Your new routines will have the following prototypes:
double ***d3tensor(long nrl,long nrh,long ncl,long nch,long ndl,long ndh)
Return value:
Input:
void free_d3tensor(double ***t,
long nrl,long nrh,long ncl,long nch,long ndl,long ndh)
Input:
Tomas Arias 2005-03-01