next up previous contents
Next: Modifying ``func_Schrodinger'' Up: Finding the right bounds Previous: Finding the right bounds

Modifying ``schint''

int schint(double *Psi, double *Psip, double Psiout[],
           int k1, int k2, double Veff[], double E,
           double r[], double dr[], int N);

Return value:

Output:

Input:

Modify your ``schint'' routine to conform to the above prototype. The modified routine (now a function subroutine if you are working in Fortran) should now return an integer equal to the number of ``nodes'' (zero crossings of the solution Psi) in the range from k1 to k2. Note that the routine also accepts an array Psiout, which we shall use in a later problem set.



Tomas Arias
Tue Feb 22 15:12:08 EST 2000