Cornell University
Department of Physics
Phys 480/680, Astro 690 April 14, 2000
Computational Physics, Spring 2000
LargeHomework Assignment # 9
(Due Thursday, April 20 at 8:40 am in Lab.)
Agenda and readings for the remainder of the term
All readings from Numerical Recipes: The Art of Scientific
Computing, 2
edition (in Fortran or C).
Goals for this assignment: Solution of Poisson's equation in
d=3 using the FFT; learn to use overloading to express scientific
algorithms succinctly; solution of Poisson's equation in a single line
of code:
phiG=I(Linv((-4*pi)*O(J(rho))));