next up previous contents
Next: getPsi() Up: Complete and normalized wave Previous: Complete and normalized wave

interpolate()

To provide the ability to interpolate between the values produced by rk4p480(), write a function of the following form in ``p480.c'':

void interpolate(double f[],int N)

Output:

Input:

Your function should interpolate the odd values of f[] from the even values according to the formula

displaymath442

For the special endpoint cases, k=1 and k=N-1, you may take tex2html_wrap_inline444 and tex2html_wrap_inline446 , respectively.



Tomas Arias
Sun Feb 24 18:36:39 EST 2002