next up previous contents
Next: Integrating outward Up: ``schint'': outward Schrödinger integrator Previous: ``schint'': outward Schrödinger integrator

``derivs_Schrodinger''

void deriv_Schrodinger(double x, double y[], double dydx[],
	       int k, double T[], double r[], double dr[], int N)

In standard form with change of variables, the equation we are solving is

displaymath134

Note that this equation requires tex2html_wrap_inline136 , but, so that we can use the same ``rk4p480'' we made for the Poisson solver, we only have room in the prototype for one double precision array T[] in addition to the change of variables information (r[], dr[], N). You thus should define an array T[k]=E-Veff[k] in ``schint'', and pass it into ``rk4p480'' and ``derivs_Schrodinger'' in the place which we used for rho[] in the Poisson solver.



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