next up previous contents
Next: ``getPsi'' Up: Complete and normalized wave Previous: Modifying ``schint''

``interpolate''

void interpolate(double f[],int N)

Output:

Input:

Write a routine ``interpolate'', of the above prototype, which interpolates the odd values of f[] from the even values according to the formula

displaymath347

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



Tomas Arias
Fri Mar 3 11:23:54 EST 2000